[OpenBIOS] [commit] r1095 - trunk/openbios-devel/arch/sparc32
repository service
svn at openbios.org
Sat Jan 26 13:50:13 CET 2013
Author: blueswirl
Date: Sat Jan 26 13:50:13 2013
New Revision: 1095
URL: http://tracker.coreboot.org/trac/openbios/changeset/1095
Log:
SPARC32: Clear FP register
The Frame Pointer register is used in "__switch_context_nosave"
(switch.S) which is called at the end of the startup sequence
(entry.S). This register should be initialized before use.
(The SparcV8 standard states, page 75: "Supervisor software may
not assume that any particular processor or memory state, except
for the PSR's ET and S bits, has been initialized after a reset trap."
Signed-off-by: Olivier DANET <odanet at caramail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
Modified:
trunk/openbios-devel/arch/sparc32/entry.S
Modified: trunk/openbios-devel/arch/sparc32/entry.S
==============================================================================
--- trunk/openbios-devel/arch/sparc32/entry.S Mon Jan 21 00:49:16 2013 (r1094)
+++ trunk/openbios-devel/arch/sparc32/entry.S Sat Jan 26 13:50:13 2013 (r1095)
@@ -452,6 +452,7 @@
wr %g3, PSR_ET, %psr
WRITE_PAUSE
+ set 0, %fp
call __switch_context_nosave
nop
More information about the OpenBIOS
mailing list