aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_init.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-11 23:06:04 -0500
committerIan Moffett <ian@osmora.org>2024-01-12 00:04:50 -0500
commit213679c7c1ee8c5a482f35fbcd62a48758f6cf12 (patch)
treecb2ad0f12286deed79105fbe2960b26fce9bb649 /sys/vm/vm_init.c
parent089405dd59157c3a652fcc5d1b28141bb0546eb9 (diff)
kernel: vm: Make vm_get_bsp_ctx() return pointer
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_init.c')
-rw-r--r--sys/vm/vm_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index e755119..2a704fe 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -46,17 +46,17 @@ static volatile struct vas kernel_vas;
* TODO: Move this to a per CPU structure, this kinda sucks
* how it is right now...
*/
-static volatile struct vm_ctx bsp_vm_ctx = {0};
+static struct vm_ctx bsp_vm_ctx = {0};
volatile struct limine_hhdm_request g_hhdm_request = {
.id = LIMINE_HHDM_REQUEST,
.revision = 0
};
-struct vm_ctx
+struct vm_ctx *
vm_get_bsp_ctx(void)
{
- return bsp_vm_ctx;
+ return &bsp_vm_ctx;
}
void