summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-10 01:09:22 -0400
committerIan Moffett <ian@osmora.org>2025-06-10 01:09:22 -0400
commit806556468f0dfba40be1782f86e13f6231fc5ecd (patch)
treeef8c96754a931a3f809ce19b95ce603a7c10b0ba
parent237b7ac74c5c5533830197c8d588a3458a1774ad (diff)
kernel/amd64: bus: Make MMIO_OFFSET same as HDDM
Drivers may be invoked even while other processes are start up and therefore their MMIO mappings must be shared. Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/arch/amd64/bus.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/include/arch/amd64/bus.h b/sys/include/arch/amd64/bus.h
index 00cb3ba..25088b4 100644
--- a/sys/include/arch/amd64/bus.h
+++ b/sys/include/arch/amd64/bus.h
@@ -36,13 +36,7 @@
struct bus_resource;
-/*
- * Hyra assumes that the bootloader uses PDE[256] for some
- * higher half mappings. To avoid conflicts with those mappings,
- * this offset is used to start device memory at PDE[257]. This
- * will give us more than enough space.
- */
-#define MMIO_OFFSET (VM_HIGHER_HALF + 0x8000000000)
+#define MMIO_OFFSET VM_HIGHER_HALF
/* Resource signature size max */
#define RSIG_MAX 16