aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_pointers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions/sys_pointers.c')
-rw-r--r--src/kernel/syscall/actions/sys_pointers.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kernel/syscall/actions/sys_pointers.c b/src/kernel/syscall/actions/sys_pointers.c
new file mode 100644
index 0000000..1a2d8f7
--- /dev/null
+++ b/src/kernel/syscall/actions/sys_pointers.c
@@ -0,0 +1,18 @@
+#include <stdint.h>
+#include <kernel/graphics/vesa.h>
+#include <kernel/fs/load.h>
+#include <kernel/memory/alloc.h>
+
+struct pointers {
+ uint8_t *fb;
+ struct font *font;
+};
+
+uint32_t sys_pointers()
+{
+ struct pointers *pointers = kmalloc(sizeof(struct pointers));
+ pointers->fb = fb;
+ pointers->font = font;
+
+ return pointers;
+} \ No newline at end of file