mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
Revert "arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0"
This reverts commit fa042186b9
.
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>
This commit is contained in:
parent
58e22f8a15
commit
18277f7057
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue