x86/cpu: Add Erratum 88 detection on AMD
[cascardo/linux.git] / arch / x86 / entry / entry_64.S
index 858b555..64d2033 100644 (file)
@@ -783,7 +783,7 @@ ENTRY(native_load_gs_index)
        SWAPGS
 gs_change:
        movl    %edi, %gs
-2:     mfence                                  /* workaround */
+2:     ALTERNATIVE "", "mfence", X86_BUG_SWAPGS_FENCE
        SWAPGS
        popfq
        ret