| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: vmparam.h,v 1.25 2021/01/06 08:17:46 rin Exp $ */ | | 1 | /* $NetBSD: vmparam.h,v 1.26 2022/05/11 13:58:43 andvar Exp $ */ |
2 | | | 2 | |
3 | #ifndef _POWERPC_VMPARAM_H_ | | 3 | #ifndef _POWERPC_VMPARAM_H_ |
4 | #define _POWERPC_VMPARAM_H_ | | 4 | #define _POWERPC_VMPARAM_H_ |
5 | | | 5 | |
6 | #ifdef _KERNEL_OPT | | 6 | #ifdef _KERNEL_OPT |
7 | #include "opt_modular.h" | | 7 | #include "opt_modular.h" |
8 | #include "opt_ppcarch.h" | | 8 | #include "opt_ppcarch.h" |
9 | #endif | | 9 | #endif |
10 | | | 10 | |
11 | /* | | 11 | /* |
12 | * These are common for BOOKE, IBM4XX, and OEA | | 12 | * These are common for BOOKE, IBM4XX, and OEA |
13 | */ | | 13 | */ |
14 | #define VM_FREELIST_DEFAULT 0 | | 14 | #define VM_FREELIST_DEFAULT 0 |
| @@ -20,27 +20,27 @@ | | | @@ -20,27 +20,27 @@ |
20 | | | 20 | |
21 | /* | | 21 | /* |
22 | * The address to which unspecified mapping requests default | | 22 | * The address to which unspecified mapping requests default |
23 | * Put the stack in its own segment and start mmaping at the | | 23 | * Put the stack in its own segment and start mmaping at the |
24 | * top of the next lower segment. | | 24 | * top of the next lower segment. |
25 | */ | | 25 | */ |
26 | #define __USE_TOPDOWN_VM | | 26 | #define __USE_TOPDOWN_VM |
27 | #define VM_DEFAULT_ADDRESS_BOTTOMUP(da, sz) \ | | 27 | #define VM_DEFAULT_ADDRESS_BOTTOMUP(da, sz) \ |
28 | round_page((vaddr_t)(da) + (vsize_t)maxdmap) | | 28 | round_page((vaddr_t)(da) + (vsize_t)maxdmap) |
29 | | | 29 | |
30 | #if defined(MODULAR) || defined(_MODULE) || !defined(_KERNEL) | | 30 | #if defined(MODULAR) || defined(_MODULE) || !defined(_KERNEL) |
31 | /* | | 31 | /* |
32 | * If we are a module or a modular kernel, then we need to defined the range | | 32 | * If we are a module or a modular kernel, then we need to defined the range |
33 | * of our varible page sizes since BOOKE and OEA use 4KB pages while IBM4XX | | 33 | * of our variable page sizes since BOOKE and OEA use 4KB pages while IBM4XX |
34 | * use 16KB pages. | | 34 | * use 16KB pages. |
35 | * This is also required for userland by jemalloc. | | 35 | * This is also required for userland by jemalloc. |
36 | */ | | 36 | */ |
37 | #define MIN_PAGE_SHIFT 12 /* BOOKE/OEA */ | | 37 | #define MIN_PAGE_SHIFT 12 /* BOOKE/OEA */ |
38 | #define MAX_PAGE_SHIFT 14 /* IBM4XX */ | | 38 | #define MAX_PAGE_SHIFT 14 /* IBM4XX */ |
39 | #define MIN_PAGE_SIZE (1 << MIN_PAGE_SHIFT) | | 39 | #define MIN_PAGE_SIZE (1 << MIN_PAGE_SHIFT) |
40 | #define MAX_PAGE_SIZE (1 << MAX_PAGE_SHIFT) | | 40 | #define MAX_PAGE_SIZE (1 << MAX_PAGE_SHIFT) |
41 | #endif /* MODULAR || _MODULE || !_KERNEL */ | | 41 | #endif /* MODULAR || _MODULE || !_KERNEL */ |
42 | | | 42 | |
43 | #if defined(_MODULE) | | 43 | #if defined(_MODULE) |
44 | #if defined(_RUMPKERNEL) | | 44 | #if defined(_RUMPKERNEL) |
45 | /* | | 45 | /* |
46 | * Safe definitions for RUMP kernels | | 46 | * Safe definitions for RUMP kernels |