Fri Aug 26 11:01:32 2011 UTC ()
define __USE_TOPDOWN_VM


(jmcneill)
diff -r1.10 -r1.11 src/sys/arch/usermode/include/vmparam.h

cvs diff -r1.10 -r1.11 src/sys/arch/usermode/include/vmparam.h (expand / switch to unified diff)

--- src/sys/arch/usermode/include/vmparam.h 2011/08/26 09:26:14 1.10
+++ src/sys/arch/usermode/include/vmparam.h 2011/08/26 11:01:32 1.11
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: vmparam.h,v 1.10 2011/08/26 09:26:14 reinoud Exp $ */ 1/* $NetBSD: vmparam.h,v 1.11 2011/08/26 11:01:32 jmcneill Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca> 4 * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -22,26 +22,28 @@ @@ -22,26 +22,28 @@
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29#ifndef _ARCH_USERMODE_INCLUDE_VMPARAM_H 29#ifndef _ARCH_USERMODE_INCLUDE_VMPARAM_H
30#define _ARCH_USERMODE_INCLUDE_VMPARAM_H 30#define _ARCH_USERMODE_INCLUDE_VMPARAM_H
31 31
32#include <machine/pmap.h> 32#include <machine/pmap.h>
33#include "opt_memsize.h" 33#include "opt_memsize.h"
34 34
 35#define __USE_TOPDOWN_VM
 36
35extern paddr_t kmem_k_start, kmem_k_end; 37extern paddr_t kmem_k_start, kmem_k_end;
36extern paddr_t kmem_ext_start, kmem_ext_end; 38extern paddr_t kmem_ext_start, kmem_ext_end;
37extern paddr_t kmem_user_start, kmem_user_end; 39extern paddr_t kmem_user_start, kmem_user_end;
38 40
39#define VM_MIN_KERNEL_ADDRESS kmem_k_start 41#define VM_MIN_KERNEL_ADDRESS kmem_k_start
40#define VM_MAX_KERNEL_ADDRESS kmem_k_end 42#define VM_MAX_KERNEL_ADDRESS kmem_k_end
41#define VM_MIN_ADDRESS kmem_user_start 43#define VM_MIN_ADDRESS kmem_user_start
42#define VM_MAXUSER_ADDRESS kmem_user_end 44#define VM_MAXUSER_ADDRESS kmem_user_end
43#define VM_MAX_ADDRESS kmem_ext_end 45#define VM_MAX_ADDRESS kmem_ext_end
44 46
45#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST 47#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
46#define VM_PHYSSEG_MAX 1 48#define VM_PHYSSEG_MAX 1
47#define VM_NFREELIST 1 49#define VM_NFREELIST 1