mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
Kernel+UserspaceEmulator: Add sys$emuctl() system call
This returns ENOSYS if you are running in the real kernel, and some other result if you are running in UserspaceEmulator. There are other ways we could check if we're inside an emulator, but it seemed easier to just ask. :^)
This commit is contained in:
parent
d650b38eb9
commit
84725ef3a5
6 changed files with 48 additions and 1 deletions
|
@ -211,6 +211,7 @@ public:
|
|||
void stop_tracing();
|
||||
void tracer_trap(Thread&, const RegisterState&);
|
||||
|
||||
KResultOr<int> sys$emuctl();
|
||||
KResultOr<int> sys$yield();
|
||||
KResultOr<int> sys$sync();
|
||||
KResultOr<int> sys$beep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue