Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 14:57:30 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 25123 for review
Message-ID:  <200302132257.h1DMvUbH029942@repoman.freebsd.org>

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

Change 25123 by jmallett@jmallett_dalek on 2003/02/13 14:56:47

	Fill in some more undefined reference gaps...
	
	Notably, add <machine/hwfunc.h>, a header describing interfaces for
	use in MD PI code which reach down into the hardware, e.g. for stuff
	like platform_halt and platform_start, which on sgimips, are ARCBIOS
	things.

Affected files ...

.. //depot/projects/mips/sys/conf/files.mips#7 edit
.. //depot/projects/mips/sys/mips/include/hwfunc.h#1 add
.. //depot/projects/mips/sys/mips/mips/critical.c#1 add
.. //depot/projects/mips/sys/mips/mips/machdep.c#3 edit
.. //depot/projects/mips/sys/mips/mips/vm_machdep.c#1 add
.. //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#2 edit

Differences ...

==== //depot/projects/mips/sys/conf/files.mips#7 (text+ko) ====

@@ -10,10 +10,12 @@
 #
 
 # This stanza is MIPS MD files.
+mips/mips/critical.c		standard
 #mips/mips/locore.s		standard	Implicit. XXX
 mips/mips/machdep.c		standard
 mips/mips/pmap.c		standard
 mips/mips/support.S		standard
+mips/mips/vm_machdep.c		standard
 
 # This stanza is platform files, per platform.
 geom/geom_fx.c			optional	sgimips

==== //depot/projects/mips/sys/mips/mips/machdep.c#3 (text+ko) ====

@@ -30,10 +30,17 @@
 #include <sys/systm.h>
 
 #include <machine/cpufunc.h>
+#include <machine/hwfunc.h>
 
 int cpu_prid, fpu_id;
 
 void
+cpu_halt(void)
+{
+	platform_halt();
+}
+
+void
 Debugger(const char *msg)
 {
 	printf("Debugger(%s)\n", msg);

==== //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#2 (text+ko) ====

@@ -28,12 +28,20 @@
 
 #include <sys/types.h>
 
+#include <machine/cpufunc.h>
 #include <machine/cpuregs.h>
+#include <machine/hwfunc.h>
 
 #include <dev/arcbios/arcbios.h>
 #include <dev/arcbios/arcbiosvar.h>
 
 void
+platform_halt(void)
+{
+	ARCBIOS->EnterInteractiveMode();
+}
+
+void
 platform_start(int argc, char **argv)
 {
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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