aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/entry_32.S8
-rw-r--r--arch/x86/kernel/entry_64.S2
2 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 623f28837476..8f8e8eea9085 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -1016,7 +1016,7 @@ ENTRY(xen_sysenter_target)
1016 1016
1017ENTRY(xen_hypervisor_callback) 1017ENTRY(xen_hypervisor_callback)
1018 CFI_STARTPROC 1018 CFI_STARTPROC
1019 pushl_cfi $0 1019 pushl_cfi $-1 /* orig_ax = -1 => not a system call */
1020 SAVE_ALL 1020 SAVE_ALL
1021 TRACE_IRQS_OFF 1021 TRACE_IRQS_OFF
1022 1022
@@ -1058,14 +1058,16 @@ ENTRY(xen_failsafe_callback)
10582: mov 8(%esp),%es 10582: mov 8(%esp),%es
10593: mov 12(%esp),%fs 10593: mov 12(%esp),%fs
10604: mov 16(%esp),%gs 10604: mov 16(%esp),%gs
1061 /* EAX == 0 => Category 1 (Bad segment)
1062 EAX != 0 => Category 2 (Bad IRET) */
1061 testl %eax,%eax 1063 testl %eax,%eax
1062 popl_cfi %eax 1064 popl_cfi %eax
1063 lea 16(%esp),%esp 1065 lea 16(%esp),%esp
1064 CFI_ADJUST_CFA_OFFSET -16 1066 CFI_ADJUST_CFA_OFFSET -16
1065 jz 5f 1067 jz 5f
1066 addl $16,%esp 1068 addl $16,%esp
1067 jmp iret_exc # EAX != 0 => Category 2 (Bad IRET) 1069 jmp iret_exc
10685: pushl_cfi $0 # EAX == 0 => Category 1 (Bad segment) 10705: pushl_cfi $-1 /* orig_ax = -1 => not a system call */
1069 SAVE_ALL 1071 SAVE_ALL
1070 jmp ret_from_exception 1072 jmp ret_from_exception
1071 CFI_ENDPROC 1073 CFI_ENDPROC
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 69babd8c834f..dcdd0ea33a32 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -1363,7 +1363,7 @@ ENTRY(xen_failsafe_callback)
1363 CFI_RESTORE r11 1363 CFI_RESTORE r11
1364 addq $0x30,%rsp 1364 addq $0x30,%rsp
1365 CFI_ADJUST_CFA_OFFSET -0x30 1365 CFI_ADJUST_CFA_OFFSET -0x30
1366 pushq_cfi $0 1366 pushq_cfi $-1 /* orig_ax = -1 => not a system call */
1367 SAVE_ALL 1367 SAVE_ALL
1368 jmp error_exit 1368 jmp error_exit
1369 CFI_ENDPROC 1369 CFI_ENDPROC