mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
ppc: Fix stack setup
The exception stack was always set up 64 KiB below the ROM, ignoring hash table alignment. Align the stack pointer appropriately. v2: * Drop buggy distinction based on PVR value since the previous patch unifies alignment. Suggested by Segher Boessenkool. Cc: Alexander Graf <agraf@suse.de> Cc: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@907 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Blue Swirl
parent
7a86728b19
commit
0c3891e2c9
@@ -334,9 +334,13 @@ GLOBL(_entry):
|
|||||||
|
|
||||||
addis r1, r3, -16 /* ramsize - 1MB */
|
addis r1, r3, -16 /* ramsize - 1MB */
|
||||||
|
|
||||||
/* setup exception stack */
|
/* setup hash table */
|
||||||
|
|
||||||
addis r1, r1, -1 /* - 64 kB */
|
addis r1, r1, -1 /* - 64 kB */
|
||||||
|
clrrwi r1, r1, 5*4 /* & ~0xfffff */
|
||||||
|
|
||||||
|
/* setup exception stack */
|
||||||
|
|
||||||
mtsprg0 r1
|
mtsprg0 r1
|
||||||
|
|
||||||
/* setup stack */
|
/* setup stack */
|
||||||
|
|||||||
Reference in New Issue
Block a user