[OpenBIOS] [commit] r907 - trunk/openbios-devel/arch/ppc/qemu

repository service svn at openbios.org
Sat Oct 16 19:36:16 CEST 2010


Author: blueswirl
Date: Sat Oct 16 19:36:15 2010
New Revision: 907
URL: http://tracker.coreboot.org/trac/openbios/changeset/907

Log:
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 at suse.de>
Cc: Segher Boessenkool <segher at kernel.crashing.org>
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>

Modified:
   trunk/openbios-devel/arch/ppc/qemu/start.S

Modified: trunk/openbios-devel/arch/ppc/qemu/start.S
==============================================================================
--- trunk/openbios-devel/arch/ppc/qemu/start.S	Sat Oct 16 19:36:12 2010	(r906)
+++ trunk/openbios-devel/arch/ppc/qemu/start.S	Sat Oct 16 19:36:15 2010	(r907)
@@ -334,9 +334,13 @@
 
 	addis	r1, r3, -16		/* ramsize - 1MB */
 
-	/* setup exception stack */
+	/* setup hash table */
 
 	addis	r1, r1, -1		/* - 64 kB */
+	clrrwi	r1, r1, 5*4		/* & ~0xfffff */
+
+	/* setup exception stack */
+
 	mtsprg0	r1
 
 	/* setup stack */



More information about the OpenBIOS mailing list