From 58ca87f7d5b31a93f534095afd31a1c866f567e0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 00:38:48 -0400 Subject: os/amd64: Reduce coupling with VAS structure This commit moves the VAS structure into a standard MD layer side and makes it accessible through a standard MI layer header. This indirection reduces coupling so that the codebase wont break if a name change or anything is needed. Signed-off-by: Ian Moffett --- src/sys/include/vm/mmu.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/sys/include/vm') diff --git a/src/sys/include/vm/mmu.h b/src/sys/include/vm/mmu.h index 0edd0bc..6749254 100644 --- a/src/sys/include/vm/mmu.h +++ b/src/sys/include/vm/mmu.h @@ -38,6 +38,7 @@ #include #include #include +#include /* standard */ #include /* @@ -60,15 +61,6 @@ struct mmu_map { paddr_t pa; }; -/* - * Represents the current virtual address - * - * @cr3: The value of CR3 for this VAS - */ -struct vm_vas { - paddr_t cr3; -}; - /* * Global early kernel VAS structure used in the * creation of new virtual address spaces. -- cgit v1.2.3