Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Enable top-down VM if USE_TOPDOWN_VM i...



details:   https://anonhg.NetBSD.org/src/rev/5118c6f867b8
branches:  trunk
changeset: 566064:5118c6f867b8
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Apr 26 22:25:54 2004 +0000

description:
Enable top-down VM if USE_TOPDOWN_VM is defined.

diffstat:

 sys/arch/mips/include/vmparam.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r ab39dbefdf71 -r 5118c6f867b8 sys/arch/mips/include/vmparam.h
--- a/sys/arch/mips/include/vmparam.h   Mon Apr 26 22:14:55 2004 +0000
+++ b/sys/arch/mips/include/vmparam.h   Mon Apr 26 22:25:54 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.33 2003/08/07 16:28:29 agc Exp $ */
+/*     $NetBSD: vmparam.h,v 1.34 2004/04/26 22:25:54 simonb Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -153,6 +153,18 @@
 #define VM_MAX_KERNEL_ADDRESS  ((vaddr_t)0xFFFFC000)
 #endif
 
+/*
+ * The address to which unspecified mapping requests default
+ */
+#ifdef _KERNEL_OPT
+#include "opt_uvm.h"
+#endif
+#define __HAVE_TOPDOWN_VM
+#ifdef USE_TOPDOWN_VM
+#define VM_DEFAULT_ADDRESS(da, sz) \
+       trunc_page(USRSTACK - MAXSSIZ - (sz))
+#endif
+
 /* virtual sizes (bytes) for various kernel submaps */
 #define VM_PHYS_SIZE           (USRIOSIZE*PAGE_SIZE)
 



Home | Main Index | Thread Index | Old Index