1
Fork 0
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:
Andreas Kling 2019-11-09 22:18:16 +01:00
parent 874ebbe4a5
commit fbeb1ab15b
5 changed files with 69 additions and 277 deletions

View file

@ -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);