diff options
| author | Oleg Nesterov <[email protected]> | 2021-02-01 17:46:49 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2021-03-16 21:13:11 +0000 |
| commit | 66c1b6d74cd7035e85c426f0af4aede19e805c8a (patch) | |
| tree | 50f3f47ba445aedf50118015d64749d49d023b53 /arch/x86/include/asm/processor.h | |
| parent | kernel, fs: Introduce and use set_restart_fn() and arch_set_restart_data() (diff) | |
| download | kernel-66c1b6d74cd7035e85c426f0af4aede19e805c8a.tar.gz kernel-66c1b6d74cd7035e85c426f0af4aede19e805c8a.zip | |
x86: Move TS_COMPAT back to asm/thread_info.h
Move TS_COMPAT back to asm/thread_info.h, close to TS_I386_REGS_POKED.
It was moved to asm/processor.h by b9d989c7218a ("x86/asm: Move the
thread_info::status field to thread_struct"), then later 37a8f7c38339
("x86/asm: Move 'status' from thread_struct to thread_info") moved the
'status' field back but TS_COMPAT was forgotten.
Preparatory patch to fix the COMPAT case for get_nr_restart_syscall()
Fixes: 609c19a385c8 ("x86/ptrace: Stop setting TS_COMPAT in ptrace code")
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/include/asm/processor.h')
| -rw-r--r-- | arch/x86/include/asm/processor.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index dc6d149bf851..f1b9ed5efaa9 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -551,15 +551,6 @@ static inline void arch_thread_struct_whitelist(unsigned long *offset, *size = fpu_kernel_xstate_size; } -/* - * Thread-synchronous status. - * - * This is different from the flags in that nobody else - * ever touches our thread-synchronous status, so we don't - * have to worry about atomic accesses. - */ -#define TS_COMPAT 0x0002 /* 32bit syscall active (64BIT)*/ - static inline void native_load_sp0(unsigned long sp0) { |
