aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions')
-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