Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 17:26:35 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 25131 for review
Message-ID:  <200302140126.h1E1QZ1E083597@repoman.freebsd.org>

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

Change 25131 by jmallett@jmallett_dalek on 2003/02/13 17:25:54

	Stub sysarch, swi_vm, fetch(9) and store(9).  XXX needs suword32.

Affected files ...

.. //depot/projects/mips/sys/conf/files.mips#8 edit
.. //depot/projects/mips/sys/mips/mips/support.S#2 edit
.. //depot/projects/mips/sys/mips/mips/sys_machdep.c#1 add
.. //depot/projects/mips/sys/mips/mips/vm_machdep.c#2 edit

Differences ...

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

@@ -15,6 +15,7 @@
 mips/mips/machdep.c		standard
 mips/mips/pmap.c		standard
 mips/mips/support.S		standard
+mips/mips/sys_machdep.c		standard
 mips/mips/vm_machdep.c		standard
 
 # This stanza is platform files, per platform.

==== //depot/projects/mips/sys/mips/mips/support.S#2 (text+ko) ====

@@ -87,3 +87,109 @@
 2:	jr	ra
 	nop
 END(memcpy)
+
+/*
+ * Stubs for store(9) XXX
+     subyte()    Stores a byte of data to the user-space address base.
+
+     susword()   Stores a short word of data to the user-space address base.
+
+     suswintr()  Stores a short word of data to the user-space address base.
+                 This function is safe to call during an interrupt context.
+
+     suword()    Stores a word of data to the user-space address base.
+ */
+
+/*
+ * subyte(9)
+ * <v0>int subyte(<a0>void *addr, <a1>int byte)
+ */
+ENTRY(subyte)
+	li	v0, -1
+	jr	ra
+	nop
+END(subyte)
+
+/*
+ * susword(9)
+ * <v0>int susword(<a0>void *addr, <a1>int shortword)
+ */
+ENTRY(susword)
+	li	v0, -1
+	jr	ra
+	nop
+END(susword)
+
+/*
+ * suswintr(9)
+ * <v0>int suswintr(<a0>void *addr, <a1>int shortword)
+ */
+ENTRY(suswintr)
+	li	v0, -1
+	jr	ra
+	nop
+END(suswintr)
+
+/*
+ * suword(9)
+ * <v0>int suword(<a0>void *addr, <a1>long word)
+ */
+ENTRY(suword)
+	li	v0, -1
+	jr	ra
+	nop
+END(suword)
+
+/*
+ * Stubs for fetch(9) XXX
+     fubyte()    Fetches a byte of data from the user-space address base.
+
+     fusword()   Fetches a short word of data from the user-space address
+                 base.
+
+     fuswintr()  Fetches a short word of data from the user-space address
+                 base.  This function is safe to call during an interrupt con-
+                 text.
+
+     fuword()    Fetches a word of data from the user-space address base.
+ */
+
+/*
+ * fubyte(9)
+ * <v0>int fubyte(<a0>const void *addr)
+ */
+ENTRY(fubyte)
+	li	v0, -1
+	jr	ra
+	nop
+END(fubyte)
+
+/*
+ * fusword(9)
+ * <v0>int fusword(<a0>const void *addr)
+ */
+ENTRY(fusword)
+	li	v0, -1
+	jr	ra
+	nop
+END(fusword)
+
+/*
+ * fuswintr(9)
+ * <v0>int fuswintr(<a0>const void *addr)
+ */
+ENTRY(fuswintr)
+	li	v0, -1
+	jr	ra
+	nop
+END(fuswintr)
+
+/*
+ * fuword(9)
+ * <v0>long fuword(<a0>const void *addr)
+ */
+ENTRY(fuword)
+	li	v0, -1
+	jr	ra
+	nop
+END(fuword)

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

@@ -55,3 +55,8 @@
 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
 {
 }
+
+void
+swi_vm(void *m)
+{
+}

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?200302140126.h1E1QZ1E083597>