summaryrefslogtreecommitdiff
path: root/memlayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'memlayout.h')
-rw-r--r--memlayout.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/memlayout.h b/memlayout.h
index d1615f7..87818d3 100644
--- a/memlayout.h
+++ b/memlayout.h
@@ -2,13 +2,14 @@
#define EXTMEM 0x100000 // Start of extended memory
#define PHYSTOP 0xE000000 // Top physical memory
-#define DEVSPACE 0xFE000000 // Other devices are at high addresses
+#define DEVSPACE 0xFE000000 // Other devices are top of 32-bit address space
+#define DEVSPACETOP 0x100000000
// Key addresses for address space layout (see kmap in vm.c for layout)
-#define KERNBASE 0x80000000 // First kernel virtual address
+#define KERNBASE 0xFFFFFF0000000000 // First kernel virtual address
#define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked
-#define V2P(a) (((uint) (a)) - KERNBASE)
+#define V2P(a) (((uint64) (a)) - KERNBASE)
#define P2V(a) ((void *)(((char *) (a)) + KERNBASE))
#define V2P_WO(x) ((x) - KERNBASE) // same as V2P, but without casts