mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 03:51:31 +00:00
arm: rmobile: bugfix: wrong register saving in lowlevel_init
lowlevel_init() of rmobile badly assumed that ip register holds return address. The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this assumption. This patch removes this bad assumption and simplify code. Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
This commit is contained in:
parent
8a10180d62
commit
03eecab9a1
1 changed files with 1 additions and 11 deletions
|
@ -76,17 +76,7 @@ loop0:
|
||||||
bne loop0
|
bne loop0
|
||||||
|
|
||||||
ldr sp, MERAM_STACK
|
ldr sp, MERAM_STACK
|
||||||
|
b s_init
|
||||||
str ip, [sp] /* stash old link register */
|
|
||||||
mov ip, lr /* save link reg across call */
|
|
||||||
|
|
||||||
bl s_init
|
|
||||||
|
|
||||||
ldr ip, [sp] /* restore save ip */
|
|
||||||
mov lr, ip /* restore link reg */
|
|
||||||
|
|
||||||
/* back to arch calling code */
|
|
||||||
mov pc, lr
|
|
||||||
|
|
||||||
.pool
|
.pool
|
||||||
.align 4
|
.align 4
|
||||||
|
|
Loading…
Add table
Reference in a new issue