mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel: Use a lookup table for syscalls
Instead of the big ugly switch statement, build a lookup table using the syscall enumeration macro. This greatly simplifies the syscall implementation. :^)
This commit is contained in:
parent
874ebbe4a5
commit
fbeb1ab15b
5 changed files with 69 additions and 277 deletions
|
@ -97,6 +97,10 @@ public:
|
|||
void die();
|
||||
void finalize();
|
||||
|
||||
int sys$yield();
|
||||
int sys$putch(char);
|
||||
int sys$sync();
|
||||
int sys$beep();
|
||||
int sys$get_process_name(char* buffer, int buffer_size);
|
||||
int sys$watch_file(const char* path, int path_length);
|
||||
int sys$dbgputch(u8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue