From 4f3c75d23188bd480739d6d1514543c95cfe3399 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 13:19:32 +0200 Subject: Started libgui implementation --- src/kernel/syscall/actions/sys_exec.c | 2 +- src/kernel/syscall/actions/sys_getch.c | 2 +- src/kernel/syscall/actions/sys_pointers.c | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/kernel/syscall/actions/sys_pointers.c (limited to 'src/kernel/syscall/actions') 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 +#include +#include +#include + +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 -- cgit v1.2.3