From a003ec08890bde3c6711803d6dfbcab79d30413f Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 7 Nov 2022 03:41:02 +0200 Subject: [PATCH] Syscall stub --- apps/system/init/init.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/system/init/init.cpp b/apps/system/init/init.cpp index beb12c3..f3335b8 100644 --- a/apps/system/init/init.cpp +++ b/apps/system/init/init.cpp @@ -6,12 +6,10 @@ extern "C" int main(int argc, char *argv[], char *envp[]) UNUSED(argv); UNUSED(envp); - // unsigned long ret; - // asm volatile("syscall" - // : "=a"(ret) - // : "a"(1), "D"(1) - // : "rcx", "r11", "memory"); - - // syscall_exit(); - return 0; + unsigned long ret; + asm volatile("syscall" + : "=a"(ret) + : "a"(1), "D"(1) + : "rcx", "r11", "memory"); + return ret; }