diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-25 00:16:26 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-25 00:16:26 +0200 |
commit | 9e1c5185ee157f4b0b155c0a788bcd0557c44623 (patch) | |
tree | a46c9e4d6b63ec4c1e30f31c69ce1270de54439c /vm/vm_page.h | |
parent | 9fb3131dbde508526dcbec29aac166ca425cd352 (diff) |
Remove the param module
Move the page properties into the new x86/page module, and the virtual
memory layout macros into the x86/pmap module.
Diffstat (limited to 'vm/vm_page.h')
-rw-r--r-- | vm/vm_page.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h index 86ab5277..026c1180 100644 --- a/vm/vm_page.h +++ b/vm/vm_page.h @@ -28,7 +28,7 @@ #include <kern/list.h> #include <kern/log2.h> #include <kern/macros.h> -#include <kern/param.h> +#include <machine/page.h> #include <machine/pmap.h> #include <machine/pmem.h> #include <machine/types.h> @@ -107,15 +107,15 @@ static inline uintptr_t vm_page_direct_va(phys_addr_t pa) { assert(pa < PMEM_DIRECTMAP_LIMIT); - return ((uintptr_t)pa + VM_MIN_DIRECTMAP_ADDRESS); + return ((uintptr_t)pa + PMAP_MIN_DIRECTMAP_ADDRESS); } static inline phys_addr_t vm_page_direct_pa(uintptr_t va) { - assert(va >= VM_MIN_DIRECTMAP_ADDRESS); - assert(va < VM_MAX_DIRECTMAP_ADDRESS); - return (va - VM_MIN_DIRECTMAP_ADDRESS); + assert(va >= PMAP_MIN_DIRECTMAP_ADDRESS); + assert(va < PMAP_MAX_DIRECTMAP_ADDRESS); + return (va - PMAP_MIN_DIRECTMAP_ADDRESS); } static inline void * |