diff options
Diffstat (limited to 'include/asm-x86/processor_64.h')
-rw-r--r-- | include/asm-x86/processor_64.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h index 5045abe91e37..bfc4ce6e2f00 100644 --- a/include/asm-x86/processor_64.h +++ b/include/asm-x86/processor_64.h | |||
@@ -18,8 +18,6 @@ | |||
18 | #include <linux/personality.h> | 18 | #include <linux/personality.h> |
19 | #include <asm/desc_defs.h> | 19 | #include <asm/desc_defs.h> |
20 | 20 | ||
21 | extern char ignore_irq13; | ||
22 | |||
23 | extern void identify_cpu(struct cpuinfo_x86 *); | 21 | extern void identify_cpu(struct cpuinfo_x86 *); |
24 | 22 | ||
25 | /* | 23 | /* |
@@ -68,9 +66,6 @@ DECLARE_PER_CPU(struct orig_ist, orig_ist); | |||
68 | .x86_tss.sp0 = (unsigned long)&init_stack + sizeof(init_stack) \ | 66 | .x86_tss.sp0 = (unsigned long)&init_stack + sizeof(init_stack) \ |
69 | } | 67 | } |
70 | 68 | ||
71 | #define INIT_MMAP \ | ||
72 | { &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL } | ||
73 | |||
74 | #define start_thread(regs,new_rip,new_rsp) do { \ | 69 | #define start_thread(regs,new_rip,new_rsp) do { \ |
75 | asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \ | 70 | asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \ |
76 | load_gs_index(0); \ | 71 | load_gs_index(0); \ |
@@ -144,13 +139,4 @@ static inline void prefetchw(void *x) | |||
144 | "r" (x)); | 139 | "r" (x)); |
145 | } | 140 | } |
146 | 141 | ||
147 | |||
148 | #define stack_current() \ | ||
149 | ({ \ | ||
150 | struct thread_info *ti; \ | ||
151 | asm("andq %%rsp,%0; ":"=r" (ti) : "0" (CURRENT_MASK)); \ | ||
152 | ti->task; \ | ||
153 | }) | ||
154 | |||
155 | |||
156 | #endif /* __ASM_X86_64_PROCESSOR_H */ | 142 | #endif /* __ASM_X86_64_PROCESSOR_H */ |