PERFORCE change 209863 for review

Robert Watson rwatson at FreeBSD.org
Thu Apr 19 23:38:10 UTC 2012


http://p4web.freebsd.org/@@209863?ac=10

Change 209863 by rwatson at rwatson_cinnamon on 2012/04/19 23:37:19

	A bit of late-night kernel hacking: start to make gxemul its own
	MIPS platform, rather than conflating it with BERI for local testing
	purposes in the CTSRD project.  A gxemul_machdep.c is still required
	-- and perhaps can be lifted, or simply used, from MALTA.
	
	Put gxemul's console driver in its own dev/gxemul tree, in
	anticipation of future gxemul-specific drivers.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/dev/gxemul/cons/gxemul_cons.c#1 branch
.. //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#11 edit
.. //depot/projects/ctsrd/beribsd/src/sys/mips/beri/gxemul_cons.c#5 delete
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/GXEMUL#3 edit
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/GXEMUL.hints#1 add
.. //depot/projects/ctsrd/beribsd/src/sys/mips/gxemul/files.gxemul#1 add

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/mips/beri/files.beri#11 (text+ko) ====

@@ -9,6 +9,5 @@
 dev/terasic/mtllcd/terasic_mtllcd.c	optional terasic_mtllcd
 dev/terasic/mtllcd/terasic_mtllcd_nexus.c	optional terasic_mtllcd
 mips/beri/beri_machdep.c		standard
-mips/beri/gxemul_cons.c			optional gxemul_cons
 mips/mips/intr_machdep.c		standard
 mips/mips/tick.c			standard

==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/GXEMUL#3 (text+ko) ====

@@ -1,5 +1,52 @@
-include BERI
-ident GXEMUL
+#
+# GXEMUL "oldtestmips" sample kernel configuration.
+#
+# $FreeBSD$
+#
+
+ident		GXEMUL
+
+machine		mips mips64eb
+cpu		CPU_MIPS4KC
+
+options 	HZ=100
+
+makeoptions	ARCH_FLAGS="-march=mips64 -mabi=64"
+
+makeoptions 	KERNLOADADDR=0xffffffff80100000
+
+include		"../gxemul/std.gxemul"
+
+hints		"GXEMUL.hints"		#Default places to look for devices.
+
+makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
+
+makeoptions	MODULES_OVERRIDE=""
+
+options 	DDB
+options 	KDB
+
+options 	SCHED_ULE
+
+options 	FFS			#Berkeley Fast Filesystem
+
+# Debugging for use in -current
+#options 	DEADLKRES		#Enable the deadlock resolver
+options 	INVARIANTS		#Enable calls of extra sanity checking
+options 	INVARIANT_SUPPORT	#Extra sanity checks of internal structures, required by INVARIANTS
+#options 	WITNESS			#Enable checks to detect deadlocks and cycles
+#options 	WITNESS_SKIPSPIN	#Don't run witness on spinlocks for speed
+
+#
+# This kernel configuration uses an embedded 8MB memory root file system.
+# Adjust the following path based on local requirements.
+#
+options 	MD_ROOT			# MD is a potential root device
+options 	MD_ROOT_SIZE=8192
+#makeoptions	MFS_IMAGE=/local/scratch/rnw24/mdroot.img
+options 	ROOTDEVNAME=\"ufs:md0\"
 
-nodevice	altera_jtag_uart
 device		gxemul_cons
+device		md
+device		loop
+device		random


More information about the p4-projects mailing list