Merge tag 'x86-fred-2024-03-10' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / arch / x86 / entry / entry_64.S
index 9bb4859..23c9081 100644 (file)
@@ -248,7 +248,13 @@ SYM_CODE_START(ret_from_fork_asm)
         * and unwind should work normally.
         */
        UNWIND_HINT_REGS
+
+#ifdef CONFIG_X86_FRED
+       ALTERNATIVE "jmp swapgs_restore_regs_and_return_to_usermode", \
+                   "jmp asm_fred_exit_user", X86_FEATURE_FRED
+#else
        jmp     swapgs_restore_regs_and_return_to_usermode
+#endif
 SYM_CODE_END(ret_from_fork_asm)
 .popsection
 
@@ -371,14 +377,6 @@ SYM_CODE_END(\asmsym)
        idtentry \vector asm_\cfunc \cfunc has_error_code=1
 .endm
 
-/*
- * System vectors which invoke their handlers directly and are not
- * going through the regular common device interrupt handling code.
- */
-.macro idtentry_sysvec vector cfunc
-       idtentry \vector asm_\cfunc \cfunc has_error_code=0
-.endm
-
 /**
  * idtentry_mce_db - Macro to generate entry stubs for #MC and #DB
  * @vector:            Vector number