Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2007 16:21:57 GMT
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 119423 for review
Message-ID:  <200705071621.l47GLvRt059241@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119423

Change 119423 by bms@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705071621.l47GLvRt059241>