PERFORCE change 119423 for review
Bruce M Simpson
bms at FreeBSD.org
Mon May 7 16:21:57 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=119423
Change 119423 by bms at bms_anglepoise on 2007/05/07 16:21:10
Add CFE specific code to locore.
Make YAMON locore variables conditional on YAMON.
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips/locore.S#17 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips/locore.S#17 (text+ko) ====
@@ -35,10 +35,21 @@
#include "assym.s"
.data
-#if 1
+
+#ifdef YAMON
GLOBAL(fenvp)
.space 4
#endif
+
+#ifdef CFE /* assumes MIPS32 */
+GLOBAL(cfe_present)
+ .space 4
+GLOBAL(cfe_handle)
+ .space 4
+GLOBAL(cfe_vector)
+ .space 4
+#endif
+
GLOBAL(stackspace)
.space PAGE_SIZE /* Smaller than it should be since it's temp. */
.align 8
@@ -109,6 +120,19 @@
sw a2, fenvp
#endif
+#ifdef CFE
+ /*
+ * Save the CFE context passed to us by the loader.
+ */
+ li t1, 0x43464531
+ bne a3, t1, no_cfe /* Check for "CFE1" signature */
+ li t1, 0x1
+ sw t1, cfe_present
+ sw a0, cfe_handle /* Firmware data segment */
+ sw a2, cfe_vector /* Firmware entry vector */
+no_cfe:
+#endif
+
/* Call the platform-specific startup code. */
jal platform_start
nop
More information about the p4-projects
mailing list