diff options
Diffstat (limited to 'src/kernel/syscall/actions')
-rw-r--r-- | src/kernel/syscall/actions/sys_exec.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_getch.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_pointers.c | 18 |
3 files changed, 20 insertions, 2 deletions
diff --git a/src/kernel/syscall/actions/sys_exec.c b/src/kernel/syscall/actions/sys_exec.c index dc1e9c6..000d185 100644 --- a/src/kernel/syscall/actions/sys_exec.c +++ b/src/kernel/syscall/actions/sys_exec.c @@ -4,4 +4,4 @@ uint32_t sys_exec(char *path) { return uexec(path); -} +}
\ No newline at end of file diff --git a/src/kernel/syscall/actions/sys_getch.c b/src/kernel/syscall/actions/sys_getch.c index 91ccda7..3ce1f8c 100644 --- a/src/kernel/syscall/actions/sys_getch.c +++ b/src/kernel/syscall/actions/sys_getch.c @@ -8,4 +8,4 @@ uint32_t sys_getch() uint32_t key = getch(); cli(); return key; -} +}
\ No newline at end of file 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 |