]> git.sur5r.net Git - u-boot/commitdiff
Revert "arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0"
authorWolfgang Denk <wd@denx.de>
Mon, 9 Jul 2012 07:19:00 +0000 (09:19 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 9 Jul 2012 07:19:00 +0000 (09:19 +0200)
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>
arch/arm/cpu/armv7/cpu.c

index 9eb484af183644cb0831447a42707d8cc6b5409e..c6fa8ef13617636a8c879cccbae626bf6ee8c2e1 100644 (file)
 #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)