diff options
Diffstat (limited to 'lib/inc/sys.h')
-rw-r--r-- | lib/inc/sys.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/inc/sys.h b/lib/inc/sys.h new file mode 100644 index 0000000..aaeb6ca --- /dev/null +++ b/lib/inc/sys.h @@ -0,0 +1,16 @@ +// MIT License, Copyright (c) 2020 Marvin Borner +// Syscall implementation + +#ifndef SYS_H +#define SYS_H + +enum sys { SYS_HALT, SYS_EXEC }; + +int sys0(enum sys num); +int sys1(enum sys num, int d1); +int sys2(enum sys num, int d1, int d2); +int sys3(enum sys num, int d1, int d2, int d3); +int sys4(enum sys num, int d1, int d2, int d3, int d4); +int sys5(enum sys num, int d1, int d2, int d3, int d4, int d5); + +#endif |