aboutsummaryrefslogtreecommitdiff
path: root/src/core/syscalls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/syscalls.cc')
-rw-r--r--src/core/syscalls.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/syscalls.cc b/src/core/syscalls.cc
new file mode 100644
index 0000000..f98e6e3
--- /dev/null
+++ b/src/core/syscalls.cc
@@ -0,0 +1,8 @@
+#include "boucane.hpp"
+
+extern "C" void syscall(){
+ u64 call_number;
+ asm volatile("mov %%rdi, %0":"=r"(call_number));
+ printk("%d",call_number);
+ for(int i=0;i<10000000;i++){}
+} \ No newline at end of file