1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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:
Andreas Kling 2021-03-09 08:16:00 +01:00
parent d650b38eb9
commit 84725ef3a5
6 changed files with 48 additions and 1 deletions

View file

@ -192,7 +192,8 @@ namespace Kernel {
S(abort) \
S(anon_create) \
S(msyscall) \
S(readv)
S(readv) \
S(emuctl)
namespace Syscall {