aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/processor.h1
-rw-r--r--arch/x86/kernel/cpu/common.c4
-rw-r--r--arch/x86/kernel/entry_64.S2
3 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index d048cad9bcad..9738b39e4eb9 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -423,7 +423,6 @@ DECLARE_INIT_PER_CPU(irq_stack_union);
423 423
424DECLARE_PER_CPU(char *, irq_stack_ptr); 424DECLARE_PER_CPU(char *, irq_stack_ptr);
425DECLARE_PER_CPU(unsigned int, irq_count); 425DECLARE_PER_CPU(unsigned int, irq_count);
426extern unsigned long kernel_eflags;
427extern asmlinkage void ignore_sysret(void); 426extern asmlinkage void ignore_sysret(void);
428#else /* X86_64 */ 427#else /* X86_64 */
429#ifdef CONFIG_CC_STACKPROTECTOR 428#ifdef CONFIG_CC_STACKPROTECTOR
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index a5fbc3c5fccc..9961e2e23709 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1116,8 +1116,6 @@ void syscall_init(void)
1116 X86_EFLAGS_TF|X86_EFLAGS_DF|X86_EFLAGS_IF|X86_EFLAGS_IOPL); 1116 X86_EFLAGS_TF|X86_EFLAGS_DF|X86_EFLAGS_IF|X86_EFLAGS_IOPL);
1117} 1117}
1118 1118
1119unsigned long kernel_eflags;
1120
1121/* 1119/*
1122 * Copies of the original ist values from the tss are only accessed during 1120 * Copies of the original ist values from the tss are only accessed during
1123 * debugging, no special alignment required. 1121 * debugging, no special alignment required.
@@ -1299,8 +1297,6 @@ void __cpuinit cpu_init(void)
1299 fpu_init(); 1297 fpu_init();
1300 xsave_init(); 1298 xsave_init();
1301 1299
1302 raw_local_save_flags(kernel_eflags);
1303
1304 if (is_uv_system()) 1300 if (is_uv_system())
1305 uv_cpu_init(); 1301 uv_cpu_init();
1306} 1302}
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 69babd8c834f..b1dac12dc5e6 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -440,7 +440,7 @@ ENTRY(ret_from_fork)
440 440
441 LOCK ; btr $TIF_FORK,TI_flags(%r8) 441 LOCK ; btr $TIF_FORK,TI_flags(%r8)
442 442
443 pushq_cfi kernel_eflags(%rip) 443 pushq_cfi $0x0002
444 popfq_cfi # reset kernel eflags 444 popfq_cfi # reset kernel eflags
445 445
446 call schedule_tail # rdi: 'prev' task parameter 446 call schedule_tail # rdi: 'prev' task parameter