diff options
author | Wolfgang Denk <wd@denx.de> | 2012-07-09 09:19:00 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-07-09 09:19:00 +0200 |
commit | 18277f7057c8e9b895aa4f8590969a57c4bce888 (patch) | |
tree | 26af374cf1f728f77f327b791d05e45d30462b21 /arch/arm/cpu/armv7 | |
parent | 58e22f8a15adec39d24d060180d76a4cbe86a04b (diff) | |
download | u-boot-imx-18277f7057c8e9b895aa4f8590969a57c4bce888.zip u-boot-imx-18277f7057c8e9b895aa4f8590969a57c4bce888.tar.gz u-boot-imx-18277f7057c8e9b895aa4f8590969a57c4bce888.tar.bz2 |
Revert "arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0"
This reverts commit fa042186b932e9b9ee9a2fd8a04a3acf7c70d224.
It causes build warnings like this:
cpu.c:48:1: warning: -fstack-usage not supported for this target
[enabled by default]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/cpu.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 9eb484a..c6fa8ef 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch/arm/cpu/armv7/cpu.c @@ -36,15 +36,9 @@ #include <asm/system.h> #include <asm/cache.h> #include <asm/armv7.h> -#include <linux/compiler.h> -void __naked save_boot_params_default(u32 r0, u32 r1, u32 r2, u32 r3) +void save_boot_params_default(u32 r0, u32 r1, u32 r2, u32 r3) { - /* - * Stack pointer is not yet initialized - * Don't save anything to stack even if compiled with -O0 - */ - asm("bx lr"); } void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3) |