PERFORCE change 100857 for review

Wojciech A. Koszek wkoszek at FreeBSD.org
Fri Jul 7 10:52:12 UTC 2006


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

Change 100857 by wkoszek at wkoszek_laptop on 2006/07/07 10:51:43

	Bring tlb.c, uio_machdep.c and vm_machdep.c to the tree. They're
	populated with stub entries for now.
	
	tlb.c is borrowed from old MIPS code by juli at . Some formatting
	strings should be fixed.

Affected files ...

.. //depot/projects/mips2/src/sys/conf/files.mips#7 edit
.. //depot/projects/mips2/src/sys/mips/mips/machdep.c#3 edit
.. //depot/projects/mips2/src/sys/mips/mips/tlb.c#1 add
.. //depot/projects/mips2/src/sys/mips/mips/uio_machdep.c#2 edit
.. //depot/projects/mips2/src/sys/mips/mips/vm_machdep.c#1 add

Differences ...

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

@@ -2,6 +2,7 @@
 mips/mips/autoconf.c	standard
 mips/mips/busdma_machdep.c 	standard
 mips/mips/copystr.S		standard
+mips/mips/cpu.c			standard
 mips/mips/db_disasm.c		optional	ddb
 mips/mips/db_interface.c		optional	ddb
 mips/mips/db_trace.c		optional	ddb
@@ -17,8 +18,11 @@
 mips/mips/support.S		standard
 mips/mips/swtch.S		standard
 mips/mips/sys_machdep.c		standard
+mips/mips/tlb.c			standard
 mips/mips/trap.c			standard
 mips/mips/uio_machdep.c		standard
+mips/mips/uio_machdep.c		standard
+mips/mips/vm_machdep.c		standard
 geom/geom_bsd.c			standard
 geom/geom_bsd_enc.c		standard
 geom/geom_mbr.c			standard

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

@@ -237,3 +237,28 @@
 {
 	return (-1);
 }
+
+/*
+ * XXXMIPS:
+ */
+void
+spinlock_enter(void)
+{
+
+}
+
+void
+spinlock_exit(void)
+{
+
+}
+
+/*
+ * XXXMIPS: This might be a wrong place for it, but stick platform_halt() to
+ * this file until we find a better place for it.
+ */
+void
+platform_halt(void)
+{
+
+}

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

@@ -1,21 +1,21 @@
 /*-
- * Copyright (c) 2006 Fill this file and put your name here
+ * Copyright (c) [year] [your name]
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions, and the following disclaimer,
- *    without modification, immediately at the beginning of the file.
- * 2. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
@@ -23,7 +23,31 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
+ * $Id$
  */
-
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
+
+#include <sys/param.h>
+#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
+#include <sys/proc.h>
+#include <sys/systm.h>
+#include <sys/uio.h>
+#include <sys/sf_buf.h>
+
+#include <vm/vm.h>
+#include <vm/vm_page.h>
+
+#include <machine/vmparam.h>
+
+/*
+ * Implement uiomove(9) from physical memory using sf_bufs to
+ * avoid the creation and destruction of ephemeral mappings.
+ */
+int
+uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio)
+{
+	return (0);
+}


More information about the p4-projects mailing list