From 496862183a101a9aceaeff968441fd2ad0bbbd7d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 13 Dec 2023 14:31:07 -0500 Subject: kernel: vm: `cpu_vm_ctx' -> `vm_ctx' This commit cleans up the naming of the `cpu_vm_ctx' as it already implies it is per core Signed-off-by: Ian Moffett --- sys/vm/vm_dynalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/vm/vm_dynalloc.c') diff --git a/sys/vm/vm_dynalloc.c b/sys/vm/vm_dynalloc.c index d43372b..e7acd19 100644 --- a/sys/vm/vm_dynalloc.c +++ b/sys/vm/vm_dynalloc.c @@ -39,7 +39,7 @@ void * dynalloc(size_t sz) { /* TODO: Per CPU */ - struct cpu_vm_ctx vm_ctx = vm_get_bsp_ctx(); + struct vm_ctx vm_ctx = vm_get_bsp_ctx(); return tlsf_malloc(vm_ctx.tlsf_ctx, sz); } @@ -54,7 +54,7 @@ void * dynrealloc(void *old_ptr, size_t newsize) { /* TODO: Per CPU */ - struct cpu_vm_ctx vm_ctx = vm_get_bsp_ctx(); + struct vm_ctx vm_ctx = vm_get_bsp_ctx(); return tlsf_realloc(vm_ctx.tlsf_ctx, old_ptr, newsize); } @@ -68,7 +68,7 @@ void dynfree(void *ptr) { /* TODO: Per CPU */ - struct cpu_vm_ctx vm_ctx = vm_get_bsp_ctx(); + struct vm_ctx vm_ctx = vm_get_bsp_ctx(); tlsf_free(vm_ctx.tlsf_ctx, ptr); } -- cgit v1.2.3