summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-09 08:16:00 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-09 08:58:26 +0100
commit84725ef3a5dfe9fb52f61af770b59d56de0b6f25 (patch)
tree9f3c7db7cf6c5b1e2adb94e098749f121c9296f4 /Kernel/Process.h
parentd650b38eb9437347017039efc4652a116880023e (diff)
downloadserenity-84725ef3a5dfe9fb52f61af770b59d56de0b6f25.zip
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. :^)
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 626072baa8..ad8e8a3f82 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -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();