Module Name: src
Committed By: cliff
Date: Thu Aug 20 01:33:04 UTC 2009
Modified Files:
src/sys/arch/mips/mips: vm_machdep.c
Log Message:
if USPACE <= PAGE_SIZE then the (single) upage will be mapped in kseg0 or xphys
and cpu_swapin is null func.
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/sys/arch/mips/mips/vm_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/vm_machdep.c
diff -u src/sys/arch/mips/mips/vm_machdep.c:1.124 src/sys/arch/mips/mips/vm_machdep.c:1.125
--- src/sys/arch/mips/mips/vm_machdep.c:1.124 Mon Aug 17 18:56:10 2009
+++ src/sys/arch/mips/mips/vm_machdep.c Thu Aug 20 01:33:04 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.124 2009/08/17 18:56:10 matt Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.125 2009/08/20 01:33:04 cliff Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.124 2009/08/17 18:56:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.125 2009/08/20 01:33:04 cliff Exp $");
#include "opt_ddb.h"
@@ -215,6 +215,7 @@
void
cpu_swapin(struct lwp *l)
{
+#if USPACE > PAGE_SIZE
pt_entry_t *pte;
int i, x;
@@ -229,6 +230,7 @@
pte = kvtopte(l->l_addr);
for (i = 0; i < UPAGES; i++)
l->l_md.md_upte[i] = pte[i].pt_entry &~ x;
+#endif
}
void