diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 00:38:48 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 00:38:48 -0400 |
commit | 58ca87f7d5b31a93f534095afd31a1c866f567e0 (patch) | |
tree | 2eaf65f85a45743e0ddad9c6c1812f160926a52e /src/sys/include/vm/mmu.h | |
parent | 68b55b3596178fde4b5ee98f037cb40ef7602f79 (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src/sys/include/vm/mmu.h')
-rw-r--r-- | src/sys/include/vm/mmu.h | 10 |
1 files changed, 1 insertions, 9 deletions
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 <sys/cpuvar.h> #include <sys/mman.h> #include <sys/param.h> +#include <machine/vas.h> /* standard */ #include <vm/vm.h> /* @@ -61,15 +62,6 @@ struct mmu_map { }; /* - * 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. */ |