summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64/memory.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-11-15 11:43:05 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-11-15 11:43:05 +0100
commit4e00cf6b1798fc95b3ccad8cb66a3e80c96b2786 (patch)
tree98b6b98989858c2c7bfec15ae342b5da975ee6b3 /sys/src/9/pc64/memory.c
parent4cd03abefe80c9d7ce97d7dfb488e7ed5a8163c8 (diff)
pc64: get rid of fixed 8MB INIMAP and dynamically map KZERO-end in l.s
traditionally, the pc kernel mapped the first 8MB of physical address space. when the kernel size grows beyond that memory mapping, it will crash on boot and theres no checking in the build process making sure it fits. with the pc64 kernel, it is not hard to always map the whole kernel memory image from KZERO to end[], so that the kernel will always fit into the initial mapping.
Diffstat (limited to 'sys/src/9/pc64/memory.c')
-rw-r--r--sys/src/9/pc64/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc64/memory.c b/sys/src/9/pc64/memory.c
index a4ff047d6..349133976 100644
--- a/sys/src/9/pc64/memory.c
+++ b/sys/src/9/pc64/memory.c
@@ -12,6 +12,8 @@
#include "io.h"
#include "ureg.h"
+u32int MemMin; /* set by l.s */
+
#define MEMDEBUG 0
enum {
@@ -22,8 +24,6 @@ enum {
NMemType = 4,
KB = 1024,
-
- MemMin = INIMAP,
};
typedef struct Map Map;