diff options
author | Ian Moffett <ian@osmora.org> | 2024-01-11 23:06:04 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-01-12 00:04:50 -0500 |
commit | 213679c7c1ee8c5a482f35fbcd62a48758f6cf12 (patch) | |
tree | cb2ad0f12286deed79105fbe2960b26fce9bb649 /sys/vm/vm_init.c | |
parent | 089405dd59157c3a652fcc5d1b28141bb0546eb9 (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.c | 6 |
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 |