mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
Syscall stub
This commit is contained in:
parent
a147ee7e5f
commit
a003ec0889
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user