kernel: syscalls

This commit is contained in:
Matheus
2023-05-07 20:22:51 -03:00
parent ca80c22f50
commit 8c3b2f4947
4 changed files with 131 additions and 1 deletions
+1 -1
View File
@@ -14,6 +14,7 @@
struct proc_t;
typedef struct thread_t {
void *kernelstacktop;
struct thread_t *next;
struct thread_t *prev;
struct proc_t *proc;
@@ -21,7 +22,6 @@ typedef struct thread_t {
context_t context;
extracontext_t extracontext;
void *kernelstack;
void *kernelstacktop;
size_t kernelstacksize;
vmmcontext_t *vmmctx;
tid_t tid;
+11
View File
@@ -0,0 +1,11 @@
#ifndef _SYSCALLS_H
#define _SYSCALLS_H
#include <stdint.h>
typedef struct {
uint64_t ret;
uint64_t errno;
} syscallret_t;
#endif