summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-15 00:31:48 -0400
committerIan Moffett <ian@osmora.org>2025-09-15 00:31:48 -0400
commit68b55b3596178fde4b5ee98f037cb40ef7602f79 (patch)
tree064f4562133449a84fd8e661fd34dece34792b52 /src
parentd19790a958e6842db74eef123ad444bf10d2bd9a (diff)
os/amd64: Make MMU header standard per arch
Lunos's virtual memory system is split into two parts, the machine dependent MMU layer and the machine independent layer. The MMU side exposes a standard bridge header that allows the MI layer to interface with the MD layer. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src')
-rw-r--r--src/sys/arch/amd64/cpu/mmu.c2
-rw-r--r--src/sys/include/vm/mmu.h (renamed from src/sys/include/arch/amd64/mmu.h)0
-rw-r--r--src/sys/vm/vm_init.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/arch/amd64/cpu/mmu.c b/src/sys/arch/amd64/cpu/mmu.c
index c08335e..3515bf4 100644
--- a/src/sys/arch/amd64/cpu/mmu.c
+++ b/src/sys/arch/amd64/cpu/mmu.c
@@ -32,7 +32,7 @@
#include <sys/param.h>
#include <sys/cdefs.h>
#include <sys/panic.h>
-#include <machine/mmu.h>
+#include <vm/mmu.h>
#include <vm/vm.h>
#include <vm/physseg.h>
#include <string.h>
diff --git a/src/sys/include/arch/amd64/mmu.h b/src/sys/include/vm/mmu.h
index 0edd0bc..0edd0bc 100644
--- a/src/sys/include/arch/amd64/mmu.h
+++ b/src/sys/include/vm/mmu.h
diff --git a/src/sys/vm/vm_init.c b/src/sys/vm/vm_init.c
index 1d1f733..2d0c507 100644
--- a/src/sys/vm/vm_init.c
+++ b/src/sys/vm/vm_init.c
@@ -31,8 +31,8 @@
#include <sys/cpuvar.h>
#include <os/kalloc.h>
#include <vm/vm.h>
+#include <vm/mmu.h>
#include <vm/physseg.h>
-#include <machine/mmu.h> /* standard */
/* os_kalloc.c */