diff options
author | Marvin Borner | 2020-04-29 13:19:32 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 13:19:32 +0200 |
commit | 4f3c75d23188bd480739d6d1514543c95cfe3399 (patch) | |
tree | d7306d1e5496becadee6514e3e50bdfc2e37f3e0 /src/kernel/syscall/actions | |
parent | 50858d043cbd6f61cc091c6772f981ca2d6cca6b (diff) |
Started libgui implementation
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 |