x86: remove legacy stuff from processor_64.h
This patch removes definitions and macros that are not used anymore from processor_64.h Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
5300db887e
commit
2c1c468a38
|
@ -18,8 +18,6 @@
|
||||||
#include <linux/personality.h>
|
#include <linux/personality.h>
|
||||||
#include <asm/desc_defs.h>
|
#include <asm/desc_defs.h>
|
||||||
|
|
||||||
extern char ignore_irq13;
|
|
||||||
|
|
||||||
extern void identify_cpu(struct cpuinfo_x86 *);
|
extern void identify_cpu(struct cpuinfo_x86 *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -68,9 +66,6 @@ DECLARE_PER_CPU(struct orig_ist, orig_ist);
|
||||||
.x86_tss.sp0 = (unsigned long)&init_stack + sizeof(init_stack) \
|
.x86_tss.sp0 = (unsigned long)&init_stack + sizeof(init_stack) \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INIT_MMAP \
|
|
||||||
{ &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL }
|
|
||||||
|
|
||||||
#define start_thread(regs,new_rip,new_rsp) do { \
|
#define start_thread(regs,new_rip,new_rsp) do { \
|
||||||
asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \
|
asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \
|
||||||
load_gs_index(0); \
|
load_gs_index(0); \
|
||||||
|
@ -144,13 +139,4 @@ static inline void prefetchw(void *x)
|
||||||
"r" (x));
|
"r" (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define stack_current() \
|
|
||||||
({ \
|
|
||||||
struct thread_info *ti; \
|
|
||||||
asm("andq %%rsp,%0; ":"=r" (ti) : "0" (CURRENT_MASK)); \
|
|
||||||
ti->task; \
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __ASM_X86_64_PROCESSOR_H */
|
#endif /* __ASM_X86_64_PROCESSOR_H */
|
||||||
|
|
Loading…
Reference in New Issue