PERFORCE change 100885 for review

Wojciech A. Koszek wkoszek at FreeBSD.org
Fri Jul 7 14:24:56 UTC 2006


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

Change 100885 by wkoszek at wkoszek_laptop on 2006/07/07 14:24:37

	Bring sigreturn() and cpu_clock* stuff to machdep.c
	
	Note that cpu_clock* functions should go to clock.c at some stage.
	juli's code have those split between architecture variants, but
	those files are also stub calls there.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/machdep.c#7 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/machdep.c#7 (text+ko) ====

@@ -42,6 +42,8 @@
 #include <sys/kdb.h>
 #include <sys/ptrace.h>
 #include <sys/reboot.h>
+#include <sys/signalvar.h>
+#include <sys/sysproto.h>
 #include <sys/user.h>
 
 #include <vm/vm.h>
@@ -59,6 +61,10 @@
 #include <machine/md_var.h>
 #include <machine/pte.h>
 #include <machine/tlb.h>
+/*
+ * XXXMIPS: Required by cpu_clock* stuff.
+ */
+#include <machine/clock.h>
 
 #ifdef DDB
 #include <ddb/ddb.h>
@@ -298,3 +304,55 @@
 }
 
 
+int
+sigreturn(td, uap)
+	struct thread *td;
+	struct sigreturn_args /* {
+		const struct __ucontext *sigcntxp;
+	} */ *uap;
+{
+	return (0);
+}
+
+/*
+ * XXXMIPS: Put more stuff, which should probably go to clock.c
+ */
+void
+cpu_initclocks()
+{
+
+}
+
+/*
+ * Nothing to do.
+ */
+void
+cpu_startprofclock(void)
+{
+
+        /* Do nothing */
+}
+
+void
+cpu_stopprofclock(void)
+{
+}
+
+/*
+ * Wait for about n microseconds (at least!).
+ */
+void
+DELAY(int n)
+{
+
+}
+
+/*
+ * XXX Needed by syscons
+ */
+int
+sysbeep(int pitch, int period)
+{
+
+        return (0);
+}


More information about the p4-projects mailing list