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

repository service svn at openbios.org
Fri Dec 17 15:25:15 CET 2010


Author: afaerber
Date: Fri Dec 17 15:25:14 2010
New Revision: 985
URL: http://tracker.coreboot.org/trac/openbios/changeset/985

Log:
ppc: unexpected_excep() needs an absolute branch

When called from address 0x700, trap_error must not use a relative branch
to unexpected_excep() since that is beyond __vectors_end.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>

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	Sun Dec 12 21:09:49 2010	(r984)
+++ trunk/openbios-devel/arch/ppc/qemu/start.S	Fri Dec 17 15:25:14 2010	(r985)
@@ -288,7 +288,9 @@
 _GLOBAL(__divide_error):
 trap_error:
 	mflr	r3
-	b	BRANCH_LABEL(unexpected_excep)
+	LOAD_REG_FUNC(r4, unexpected_excep)
+	mtctr r4
+	bctr
 
 VECTOR( 0x100, "SRE" ):
         b       _entry



More information about the OpenBIOS mailing list