summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64/mem.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-04 16:48:37 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-04 16:48:37 +0200
commit5f1b70f437ed4f598f9439e201f1f7644f5ce7b5 (patch)
tree7eede785ac28d6d2ed770274e7957e5deeb6d5c9 /sys/src/9/pc64/mem.h
parent8debb0736ea5578a195ab663bf9565d6e52ad83b (diff)
pc, pc64: new memory map code
This replaces the memory map code for both pc and pc64 kernels with a unified implementation using the new portable memory map code. The main motivation is to be robust against broken e820 memory maps by the bios and delay the Conf.mem[] allocation after archinit(), so mp and acpi tables can be reserved and excluded from user memory. There are a few changes: new memreserve() function has been added for archinit() to reserve bios and acpi tables. upareserve() has been replaced by upaalloc(), which now has an address argument. umbrwmalloc() and umbmalloc() have been replaced by umballoc(). both upaalloc() and umballoc() return physical addresses or -1 on error. the physical address -1 is now used as a sentinel value instead of 0 when dealing with physical addresses. archmp and archacpi now always use vmap() to access the bios tables and reserve the ranges. more overflow checks have been added. ramscan() has been rewritten using vmap(). to handle the population of kernel memory, pc and pc64 now have pmap() and punmap() functions to do permanent mappings.
Diffstat (limited to 'sys/src/9/pc64/mem.h')
-rw-r--r--sys/src/9/pc64/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc64/mem.h b/sys/src/9/pc64/mem.h
index d9bc638f1..3a9bf9a1a 100644
--- a/sys/src/9/pc64/mem.h
+++ b/sys/src/9/pc64/mem.h
@@ -60,7 +60,7 @@
#define KMAPSIZE (2*MiB)
/*
- * Fundamental addresses - bottom 64kB saved for return to real mode
+ * Fundamental addresses
*/
#define CONFADDR (KZERO+0x1200ull) /* info passed from boot loader */
#define APBOOTSTRAP (KZERO+0x7000ull) /* AP bootstrap code */