Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips if USPACE <= PAGE_SIZE then the (single) ...
details: https://anonhg.NetBSD.org/src/rev/5b64fe173977
branches: trunk
changeset: 746790:5b64fe173977
user: cliff <cliff%NetBSD.org@localhost>
date: Thu Aug 20 01:33:04 2009 +0000
description:
if USPACE <= PAGE_SIZE then the (single) upage will be mapped in kseg0 or xphys and cpu_swapin is null func.
diffstat:
sys/arch/mips/mips/vm_machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 5daae3df00da -r 5b64fe173977 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Thu Aug 20 00:59:28 2009 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Thu Aug 20 01:33:04 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index