summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-05-10 20:22:41 +0000
committermarius <marius@FreeBSD.org>2009-05-10 20:22:41 +0000
commit3ccda1e48de5b4532db9462eecae03ee12ce0ac6 (patch)
tree6760ba6ace7a2479583951dc09152b2770aa41be /sys/sparc64
parent57dc3a1951c15260f0a8077e7f5f59b15a42e261 (diff)
downloadFreeBSD-src-3ccda1e48de5b4532db9462eecae03ee12ce0ac6.zip
FreeBSD-src-3ccda1e48de5b4532db9462eecae03ee12ce0ac6.tar.gz
- Fix style.
- Use __FBSDID.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/vm_machdep.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c
index b769753..a5b7629 100644
--- a/sys/sparc64/sparc64/vm_machdep.c
+++ b/sys/sparc64/sparc64/vm_machdep.c
@@ -39,23 +39,26 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * from: FreeBSD: src/sys/i386/i386/vm_machdep.c,v 1.167 2001/07/12
- * $FreeBSD$
+ * from: FreeBSD: src/sys/i386/i386/vm_machdep.c,v 1.167 2001/07/12
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include "opt_pmap.h"
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/malloc.h>
-#include <sys/proc.h>
#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/kernel.h>
#include <sys/linker_set.h>
+#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mutex.h>
+#include <sys/proc.h>
#include <sys/sf_buf.h>
+#include <sys/sched.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
#include <sys/vmmeter.h>
@@ -74,11 +77,10 @@
#include <vm/uma_int.h>
#include <machine/cache.h>
-#include <machine/bus.h>
#include <machine/cpu.h>
#include <machine/fp.h>
-#include <machine/fsr.h>
#include <machine/frame.h>
+#include <machine/fsr.h>
#include <machine/md_var.h>
#include <machine/ofw_machdep.h>
#include <machine/ofw_mem.h>
@@ -94,7 +96,7 @@ static void sf_buf_init(void *arg);
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL);
/*
- * Expanded sf_freelist head. Really an SLIST_HEAD() in disguise, with the
+ * Expanded sf_freelist head. Really an SLIST_HEAD() in disguise, with the
* sf_freelist head with the sf_lock mutex.
*/
static struct {
@@ -124,11 +126,13 @@ cpu_exit(struct thread *td)
void
cpu_thread_exit(struct thread *td)
{
+
}
void
cpu_thread_clean(struct thread *td)
{
+
}
void
@@ -146,16 +150,19 @@ cpu_thread_alloc(struct thread *td)
void
cpu_thread_free(struct thread *td)
{
+
}
-
+
void
cpu_thread_swapin(struct thread *td)
{
+
}
void
cpu_thread_swapout(struct thread *td)
{
+
}
void
@@ -328,6 +335,7 @@ cpu_reset(void)
0,
(cell_t)bspec
};
+
if ((chosen = OF_finddevice("/chosen")) != 0) {
if (OF_getprop(chosen, "bootpath", bspec, sizeof(bspec)) == -1)
bspec[0] = '\0';
@@ -392,7 +400,7 @@ sf_buf_init(void *arg)
}
/*
- * Get an sf_buf from the freelist. Will block if none are available.
+ * Get an sf_buf from the freelist. Will block if none are available.
*/
struct sf_buf *
sf_buf_alloc(struct vm_page *m, int flags)
@@ -411,7 +419,7 @@ sf_buf_alloc(struct vm_page *m, int flags)
sf_buf_alloc_want--;
/*
- * If we got a signal, don't risk going back to sleep.
+ * If we got a signal, don't risk going back to sleep.
*/
if (error)
break;
OpenPOWER on IntegriCloud