summaryrefslogtreecommitdiff
path: root/kernel/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscalls.h')
-rw-r--r--kernel/syscalls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h
index 5579dd7..d3223a5 100644
--- a/kernel/syscalls.h
+++ b/kernel/syscalls.h
@@ -16,6 +16,8 @@
#include <stdbool.h>
#include "fd.h"
+#include "/home/miguel/Downloads/newlib-foolos/newlib/libc/sys/foolos/syscalls.h"
+/*
#define SYSCALL_EXIT 60
#define SYSCALL_EXECVE 64
#define SYSCALL_FORK 72
@@ -45,6 +47,7 @@
#define SYSCALL_GUI_RECT 87
#define SYSCALL_GUI_WIN 88
+*/
/** Todo move somewhere else and init per process , think how to make thread safe */
void fd_init_std_streams(uint32_t pid);
@@ -59,6 +62,9 @@ uint32_t syscall_generic(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint
/** test if a specific syscall is ready to be processed */
uint32_t syscall_generic_test(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint32_t pid);
+/** prepare syscall */
+uint32_t syscall_generic_prep(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint32_t pid);
+
// new planned syscalls for graphx
// TODO: split ncurses and our syscalls??