system calls

This commit is contained in:
Matheus
2022-08-15 21:52:57 -03:00
parent 21e6a0ad1a
commit 432e85b837
17 changed files with 187 additions and 26 deletions
+1
View File
@@ -23,6 +23,7 @@ typedef struct _thread_t{
struct _thread_t* prev;
struct _proc_t* proc;
arch_regs* regs;
arch_extraregs extraregs;
state_t state;
void* kernelstack;
void* kernelstackbase;
+11
View File
@@ -0,0 +1,11 @@
#ifndef _SYSCALLS_H_INCLUDE
#define _SYSCALLS_H_INCLUDE
typedef struct {
long ret;
long errno;
} syscallret;
syscallret syscall_libc_log(char* str);
#endif