From 84725ef3a5dfe9fb52f61af770b59d56de0b6f25 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 9 Mar 2021 08:16:00 +0100 Subject: 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. :^) --- Kernel/Process.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Kernel/Process.h') 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 sys$emuctl(); KResultOr sys$yield(); KResultOr sys$sync(); KResultOr sys$beep(); -- cgit v1.2.3