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.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/syscalls.cc b/src/core/syscalls.cc
index f98e6e3..0e6ce2e 100644
--- a/src/core/syscalls.cc
+++ b/src/core/syscalls.cc
@@ -1,8 +1,13 @@
#include "boucane.hpp"
+#include "core/asm.hpp"
+#include "drivers/framebuffer.hpp"
+#include "drivers/psftext.hpp"
extern "C" void syscall(){
u64 call_number;
- asm volatile("mov %%rdi, %0":"=r"(call_number));
+ asm volatile("mov %%rdi, %0":"=m"(call_number)::"rdi");
+
+ cli();
printk("%d",call_number);
- for(int i=0;i<10000000;i++){}
+ sti();
} \ No newline at end of file