lab 2 (probably working)

This commit is contained in:
2020-05-25 18:00:42 +02:00
parent df7631de81
commit 404ae75cfa
6 changed files with 201 additions and 14 deletions

View File

@@ -30,7 +30,7 @@
#ifndef _SYSCALL_H_
#define _SYSCALL_H_
#include <types.h>
#include <cdefs.h> /* for __DEAD */
struct trapframe; /* from <machine/trapframe.h> */
@@ -59,4 +59,9 @@ __DEAD void enter_new_process(int argc, userptr_t argv, userptr_t env,
int sys_reboot(int code);
int sys___time(userptr_t user_seconds, userptr_t user_nanoseconds);
size_t sys_read(int filehandle, userptr_t buf, size_t size);
size_t sys_write(int filehandle, const userptr_t buf, size_t size);
void sys__exit(int status);
#endif /* _SYSCALL_H_ */