summaryrefslogtreecommitdiff
path: root/vm/vm_page.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-24 22:49:22 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-25 00:04:15 +0200
commit9fb3131dbde508526dcbec29aac166ca425cd352 (patch)
tree182bdd2c35968fab94b521a8efd39f7c25f889e5 /vm/vm_page.h
parent58401aa087399e0344b73e91f5708af2451b33e7 (diff)
Move physical memory properties into the new x86/pmem module
Diffstat (limited to 'vm/vm_page.h')
-rw-r--r--vm/vm_page.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h
index 34ad163d..86ab5277 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -30,6 +30,7 @@
#include <kern/macros.h>
#include <kern/param.h>
#include <machine/pmap.h>
+#include <machine/pmem.h>
#include <machine/types.h>
/*
@@ -105,7 +106,7 @@ vm_page_to_pa(const struct vm_page *page)
static inline uintptr_t
vm_page_direct_va(phys_addr_t pa)
{
- assert(pa < VM_PAGE_DIRECTMAP_LIMIT);
+ assert(pa < PMEM_DIRECTMAP_LIMIT);
return ((uintptr_t)pa + VM_MIN_DIRECTMAP_ADDRESS);
}