summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/system.h
diff options
context:
space:
mode:
authorJaswinder Singh <jaswinder@infradead.org>2008-12-15 17:53:54 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-16 21:10:27 +0100
commitaab02f0ae20b8fe0fe891e9f107c6e392256ca01 (patch)
tree87763c424571740d9b307ca3f9f6296b3765a082 /arch/x86/include/asm/system.h
parentx86, 32-bit: simplify alloc_low_page() (diff)
downloadlinux-aab02f0ae20b8fe0fe891e9f107c6e392256ca01.tar.xz
linux-aab02f0ae20b8fe0fe891e9f107c6e392256ca01.zip
x86: process_64.c declare __switch_to() and sys_arch_prctl before they get used
Impact: cleanup In asm/system.h moved out __switch_to from CONFIG_X86_32 as it is common for both 32 and 64 bit. In asm/pctl.h defined sys_arch_prctl Signed-off-by: Jaswinder Singh <jaswinder@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/system.h')
-rw-r--r--arch/x86/include/asm/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h
index 2ed3f0f44ff7..59555f48bf4c 100644
--- a/arch/x86/include/asm/system.h
+++ b/arch/x86/include/asm/system.h
@@ -17,12 +17,12 @@
# define AT_VECTOR_SIZE_ARCH 1
#endif
-#ifdef CONFIG_X86_32
-
struct task_struct; /* one of the stranger aspects of C forward declarations */
struct task_struct *__switch_to(struct task_struct *prev,
struct task_struct *next);
+#ifdef CONFIG_X86_32
+
/*
* Saving eflags is important. It switches not only IOPL between tasks,
* it also protects other tasks from NT leaking through sysenter etc.