PERFORCE change 101552 for review

Bruce M Simpson bms at FreeBSD.org
Fri Jul 14 14:01:48 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101552

Change 101552 by bms at bms_montagne on 2006/07/14 14:01:31

	The R4KC *is* a MIPS32 processor; so comment out ARCH_FLAGS
	Also reference the hardwired device hints we added as we
	currently have no loader and are in bringup.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/conf/MALTA#5 edit
.. //depot/projects/mips2/src/sys/mips/mips/locore.S#10 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/conf/MALTA#5 (text+ko) ====

@@ -21,7 +21,7 @@
 cpu		CPU_MIPS4KC
 ident		MALTA
 
-makeoptions	ARCH_FLAGS=-march=r4kc
+#makeoptions	ARCH_FLAGS=-march=mips32
 makeoptions	MIPS_LITTLE_ENDIAN=defined
 
 # Don't build any modules yet.
@@ -32,7 +32,7 @@
 options		PHYSADDR=0xc0000000
 include		"../mips4k/malta/std.malta"
 
-#hints		"GENERIC.hints"		#Default places to look for devices.
+hints		"MALTA.hints"		#Default places to look for devices.
 
 makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
 
@@ -58,3 +58,4 @@
 device		mem
 device		md
 device		uart
+device		uart_ns8250

==== //depot/projects/mips2/src/sys/mips/mips/locore.S#10 (text+ko) ====

@@ -48,31 +48,14 @@
 	 * 	Soft reset
 	 *	Boot exception vectors (firmware-provided)
 	 */
-/*
- * XXXMIPS: I get absolute expression required `li' with this below.
- * Probably because cpuregs.h from NetBSD defines MIPS_SR_SOFT_RESET as
- * another macro which is not defined.
- */
-#if 0
 	li	t0, (MIPS_SR_BEV | MIPS_SR_SOFT_RESET)
-#endif
-	li	t0, MIPS_SR_BEV
 
 	/*
 	 * t1: Bits to set explicitly:
-	 *	Kernel mode is 64-bit
 	 *	Enable FPU
 	 */
-/*
- * XXXMIPS: look at this. I think "Kernel mode is 64-bit" == MIPS_SR_KX, so
- * it's probably worth to remove it soon.
- */
-#if 0
-	li	t1, MIPS_SR_KX | MIPS_SR_COP_1_BIT
-#endif
 	li	t1, MIPS_SR_COP_1_BIT
 
-
 	/*
 	 * Read coprocessor 0 status register, clear bits not
 	 * preserved (namely, clearing interrupt bits), and set
@@ -97,18 +80,14 @@
 
 	/*
 	 * Set up the GP.
-	 * XXMIPS: I did 'dla' -> 'la' conversion here.
 	 */
 	la	gp, _gp
 
 	/*
 	 * Set up our temporary stack.
-	 * XXMIPS: I did 'dla' -> 'la' conversion here.
 	 */
 	la	sp, topstack
 
-
-
 	/* Call the platform-specific startup code. */
 	jal	platform_start
 	nop


More information about the p4-projects mailing list