diff options
author | Marvin Borner | 2019-12-14 00:26:49 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-14 00:26:49 +0100 |
commit | 31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 (patch) | |
tree | 2365961919f39eedd6f9725610e5a9db2c9ba418 /src/kernel/syscall | |
parent | e7d88df7a5a7e11677b68303a0d05455bf9a60d6 (diff) |
idk
Diffstat (limited to 'src/kernel/syscall')
-rw-r--r-- | src/kernel/syscall/actions/sys_get_pointers.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <kernel/graphics/vesa.h> #include <kernel/graphics/font.h> #include <kernel/paging/paging.h> +#include <kernel/io/io.h> +#include <kernel/lib/stdlib/liballoc.h> 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 |