diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-17 05:54:50 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-17 05:54:50 -0400 |
commit | b66da4a4859b0be3f12575863bf1d873116d1947 (patch) | |
tree | 70312c230efd0420817906adc2733489026153e9 /arch/arm/nwfpe/fpa11.h | |
parent | f60f700876cd51de9de69f3a3c865d95e287a24d (diff) |
[PATCH] ARM: Remove global nwfpe register variable
Recent changes to nwfpe broke the build with some gcc versions:
In file included from arch/arm/nwfpe/softfloat.c:33:
arch/arm/nwfpe/fpa11.h:32: global register variable follows a function definition
make[1]: *** [arch/arm/nwfpe/softfloat.o] Error 1
Since we now ensure that the kernel stack is empty when returning
to user space, we can now access the userspace registers with
reference to the kernel stack using current_thread_info(), rather
than remembering the stack pointer at the time nwfpe was called.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/nwfpe/fpa11.h')
-rw-r--r-- | arch/arm/nwfpe/fpa11.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/nwfpe/fpa11.h b/arch/arm/nwfpe/fpa11.h index 45cc65426a22..e4a61aea534b 100644 --- a/arch/arm/nwfpe/fpa11.h +++ b/arch/arm/nwfpe/fpa11.h | |||
@@ -29,9 +29,7 @@ | |||
29 | * stack+task struct. Use the same method as 'current' uses to | 29 | * stack+task struct. Use the same method as 'current' uses to |
30 | * reach them. | 30 | * reach them. |
31 | */ | 31 | */ |
32 | register unsigned long *user_registers asm("sl"); | 32 | #define GET_USERREG() ((struct pt_regs *)(THREAD_START_SP + (unsigned long)current_thread_info()) - 1) |
33 | |||
34 | #define GET_USERREG() (user_registers) | ||
35 | 33 | ||
36 | #include <linux/config.h> | 34 | #include <linux/config.h> |
37 | #include <linux/thread_info.h> | 35 | #include <linux/thread_info.h> |