aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/ia32
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r--arch/x86/ia32/ia32entry.S30
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
index 32e94aec6073..5d2641ce9957 100644
--- a/arch/x86/ia32/ia32entry.S
+++ b/arch/x86/ia32/ia32entry.S
@@ -127,7 +127,7 @@ ENTRY(ia32_sysenter_target)
127 CFI_REL_OFFSET rsp,0 127 CFI_REL_OFFSET rsp,0
128 pushfq_cfi 128 pushfq_cfi
129 /*CFI_REL_OFFSET rflags,0*/ 129 /*CFI_REL_OFFSET rflags,0*/
130 movl THREAD_INFO(TI_sysenter_return, %rsp, 3*8), %r10d 130 movl ASM_THREAD_INFO(TI_sysenter_return, %rsp, 3*8), %r10d
131 CFI_REGISTER rip,r10 131 CFI_REGISTER rip,r10
132 pushq_cfi $__USER32_CS 132 pushq_cfi $__USER32_CS
133 /*CFI_REL_OFFSET cs,0*/ 133 /*CFI_REL_OFFSET cs,0*/
@@ -159,8 +159,8 @@ ENTRY(ia32_sysenter_target)
159 jnz sysenter_fix_flags 159 jnz sysenter_fix_flags
160sysenter_flags_fixed: 160sysenter_flags_fixed:
161 161
162 orl $TS_COMPAT, THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS) 162 orl $TS_COMPAT, ASM_THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS)
163 testl $_TIF_WORK_SYSCALL_ENTRY, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 163 testl $_TIF_WORK_SYSCALL_ENTRY, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
164 CFI_REMEMBER_STATE 164 CFI_REMEMBER_STATE
165 jnz sysenter_tracesys 165 jnz sysenter_tracesys
166 cmpq $(IA32_NR_syscalls-1),%rax 166 cmpq $(IA32_NR_syscalls-1),%rax
@@ -177,10 +177,10 @@ sysenter_dispatch:
177 movq %rax,RAX(%rsp) 177 movq %rax,RAX(%rsp)
178 DISABLE_INTERRUPTS(CLBR_NONE) 178 DISABLE_INTERRUPTS(CLBR_NONE)
179 TRACE_IRQS_OFF 179 TRACE_IRQS_OFF
180 testl $_TIF_ALLWORK_MASK, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 180 testl $_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
181 jnz sysexit_audit 181 jnz sysexit_audit
182sysexit_from_sys_call: 182sysexit_from_sys_call:
183 andl $~TS_COMPAT,THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS) 183 andl $~TS_COMPAT,ASM_THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS)
184 /* clear IF, that popfq doesn't enable interrupts early */ 184 /* clear IF, that popfq doesn't enable interrupts early */
185 andl $~0x200,EFLAGS(%rsp) 185 andl $~0x200,EFLAGS(%rsp)
186 movl RIP(%rsp),%edx /* User %eip */ 186 movl RIP(%rsp),%edx /* User %eip */
@@ -225,7 +225,7 @@ sysexit_from_sys_call:
225 .endm 225 .endm
226 226
227 .macro auditsys_exit exit 227 .macro auditsys_exit exit
228 testl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT), THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 228 testl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT), ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
229 jnz ia32_ret_from_sys_call 229 jnz ia32_ret_from_sys_call
230 TRACE_IRQS_ON 230 TRACE_IRQS_ON
231 ENABLE_INTERRUPTS(CLBR_NONE) 231 ENABLE_INTERRUPTS(CLBR_NONE)
@@ -240,7 +240,7 @@ sysexit_from_sys_call:
240 movl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT),%edi 240 movl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT),%edi
241 DISABLE_INTERRUPTS(CLBR_NONE) 241 DISABLE_INTERRUPTS(CLBR_NONE)
242 TRACE_IRQS_OFF 242 TRACE_IRQS_OFF
243 testl %edi, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 243 testl %edi, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
244 jz \exit 244 jz \exit
245 CLEAR_RREGS 245 CLEAR_RREGS
246 jmp int_with_check 246 jmp int_with_check
@@ -262,7 +262,7 @@ sysenter_fix_flags:
262 262
263sysenter_tracesys: 263sysenter_tracesys:
264#ifdef CONFIG_AUDITSYSCALL 264#ifdef CONFIG_AUDITSYSCALL
265 testl $(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT), THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 265 testl $(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT), ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
266 jz sysenter_auditsys 266 jz sysenter_auditsys
267#endif 267#endif
268 SAVE_EXTRA_REGS 268 SAVE_EXTRA_REGS
@@ -346,8 +346,8 @@ ENTRY(ia32_cstar_target)
3461: movl (%r8),%r9d 3461: movl (%r8),%r9d
347 _ASM_EXTABLE(1b,ia32_badarg) 347 _ASM_EXTABLE(1b,ia32_badarg)
348 ASM_CLAC 348 ASM_CLAC
349 orl $TS_COMPAT, THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS) 349 orl $TS_COMPAT, ASM_THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS)
350 testl $_TIF_WORK_SYSCALL_ENTRY, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 350 testl $_TIF_WORK_SYSCALL_ENTRY, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
351 CFI_REMEMBER_STATE 351 CFI_REMEMBER_STATE
352 jnz cstar_tracesys 352 jnz cstar_tracesys
353 cmpq $IA32_NR_syscalls-1,%rax 353 cmpq $IA32_NR_syscalls-1,%rax
@@ -364,10 +364,10 @@ cstar_dispatch:
364 movq %rax,RAX(%rsp) 364 movq %rax,RAX(%rsp)
365 DISABLE_INTERRUPTS(CLBR_NONE) 365 DISABLE_INTERRUPTS(CLBR_NONE)
366 TRACE_IRQS_OFF 366 TRACE_IRQS_OFF
367 testl $_TIF_ALLWORK_MASK, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 367 testl $_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
368 jnz sysretl_audit 368 jnz sysretl_audit
369sysretl_from_sys_call: 369sysretl_from_sys_call:
370 andl $~TS_COMPAT, THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS) 370 andl $~TS_COMPAT, ASM_THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS)
371 RESTORE_RSI_RDI_RDX 371 RESTORE_RSI_RDI_RDX
372 movl RIP(%rsp),%ecx 372 movl RIP(%rsp),%ecx
373 CFI_REGISTER rip,rcx 373 CFI_REGISTER rip,rcx
@@ -402,7 +402,7 @@ sysretl_audit:
402 402
403cstar_tracesys: 403cstar_tracesys:
404#ifdef CONFIG_AUDITSYSCALL 404#ifdef CONFIG_AUDITSYSCALL
405 testl $(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT), THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 405 testl $(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT), ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
406 jz cstar_auditsys 406 jz cstar_auditsys
407#endif 407#endif
408 xchgl %r9d,%ebp 408 xchgl %r9d,%ebp
@@ -469,8 +469,8 @@ ENTRY(ia32_syscall)
469 this could be a problem. */ 469 this could be a problem. */
470 ALLOC_PT_GPREGS_ON_STACK 470 ALLOC_PT_GPREGS_ON_STACK
471 SAVE_C_REGS_EXCEPT_R891011 471 SAVE_C_REGS_EXCEPT_R891011
472 orl $TS_COMPAT, THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS) 472 orl $TS_COMPAT, ASM_THREAD_INFO(TI_status, %rsp, SIZEOF_PTREGS)
473 testl $_TIF_WORK_SYSCALL_ENTRY, THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS) 473 testl $_TIF_WORK_SYSCALL_ENTRY, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
474 jnz ia32_tracesys 474 jnz ia32_tracesys
475 cmpq $(IA32_NR_syscalls-1),%rax 475 cmpq $(IA32_NR_syscalls-1),%rax
476 ja ia32_badsys 476 ja ia32_badsys