From 31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 14 Dec 2019 00:26:49 +0100 Subject: idk --- src/kernel/syscall/actions/sys_get_pointers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/syscall/actions') diff --git a/src/kernel/syscall/actions/sys_get_pointers.c b/src/kernel/syscall/actions/sys_get_pointers.c index adbdd36..1f4cf5e 100644 --- a/src/kernel/syscall/actions/sys_get_pointers.c +++ b/src/kernel/syscall/actions/sys_get_pointers.c @@ -2,6 +2,8 @@ #include #include #include +#include +#include struct userspace_pointers { unsigned char *fb; @@ -10,9 +12,8 @@ struct userspace_pointers { uint32_t sys_get_pointers() { - struct userspace_pointers *pointers = (struct userspace_pointers *) paging_alloc_pages(1); + struct userspace_pointers *pointers = (struct userspace_pointers *) umalloc(sizeof(struct userspace_pointers)); pointers->fb = fb; pointers->font = font; - paging_set_user((uint32_t) pointers, 1); return (uint32_t) pointers; } \ No newline at end of file -- cgit v1.2.3