mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 07:32:03 +00:00
microblaze: start.S: use stack space as scratch memory for endian offset
To simpify the code, use stack space as scratch memory for endian offset calculation, rather than saving/restoring the first unused MB vector. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Link: https://lore.kernel.org/r/20211130163358.2531677-5-ovidiu.panait@windriver.com Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
7a971dfbeb
commit
48039c333f
1 changed files with 2 additions and 4 deletions
|
@ -125,10 +125,8 @@ __setup_exceptions:
|
|||
* 4b) BIG endian - r10 contains 0x0 because 0x2 offset is on addr 0x3
|
||||
*/
|
||||
addik r6, r0, 0x2 /* BIG/LITTLE endian offset */
|
||||
lwi r7, r0, 0x28
|
||||
swi r6, r0, 0x28 /* used first unused MB vector */
|
||||
lbui r10, r0, 0x28 /* used first unused MB vector */
|
||||
swi r7, r0, 0x28
|
||||
sw r6, r1, r0
|
||||
lbu r10, r1, r0
|
||||
|
||||
/* add opcode instruction for 32bit jump - 2 instruction imm & brai */
|
||||
addi r2, r0, 0xb0000000 /* hex b000 opcode imm */
|
||||
|
|
Loading…
Reference in a new issue