aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall
diff options
context:
space:
mode:
authorMarvin Borner2019-12-14 00:26:49 +0100
committerMarvin Borner2019-12-14 00:26:49 +0100
commit31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 (patch)
tree2365961919f39eedd6f9725610e5a9db2c9ba418 /src/kernel/syscall
parente7d88df7a5a7e11677b68303a0d05455bf9a60d6 (diff)
idk
Diffstat (limited to 'src/kernel/syscall')
-rw-r--r--src/kernel/syscall/actions/sys_get_pointers.c5
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