aboutsummaryrefslogtreecommitdiff
path: root/sys/include/vm/vm.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-11 21:17:10 -0500
committerIan Moffett <ian@osmora.org>2024-01-11 21:17:10 -0500
commit089405dd59157c3a652fcc5d1b28141bb0546eb9 (patch)
tree15f90b762bc93f61e039690f4e2047e02ec29c22 /sys/include/vm/vm.h
parent62b2402c42483d1cfff7305778e0ac32711fbb69 (diff)
kernel: vm: Move vm_ctx structure to pmap.h
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm/vm.h')
-rw-r--r--sys/include/vm/vm.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/include/vm/vm.h b/sys/include/vm/vm.h
index d68ec20..1bbe500 100644
--- a/sys/include/vm/vm.h
+++ b/sys/include/vm/vm.h
@@ -37,10 +37,8 @@
#include <sys/types.h>
#include <sys/limine.h>
#include <sys/cdefs.h>
-#include <sys/spinlock.h>
#include <vm/page.h>
#include <vm/pmap.h>
-#include <vm/tlsf.h>
extern volatile struct limine_hhdm_request g_hhdm_request;
@@ -50,18 +48,6 @@ extern volatile struct limine_hhdm_request g_hhdm_request;
#define VIRT_TO_PHYS(virt) ((uintptr_t)virt - VM_HIGHER_HALF)
/*
- * vm_ctx - Per core virtual memory context
- *
- * Holds per core virtual memory information.
- */
-struct vm_ctx {
- uintptr_t dynalloc_pool_phys;
- size_t dynalloc_pool_sz; /* In bytes */
- tlsf_t tlsf_ctx;
- struct spinlock dynalloc_lock;
-};
-
-/*
* Returns the machine's pagesize:
*
* XXX TODO: This needs to be moved to vmm_init.c