Add syscall stub
diff --git a/src/kernel/Jmk b/src/kernel/Jmk
index c8ac4fe..0cf5de3 100644
--- a/src/kernel/Jmk
+++ b/src/kernel/Jmk
@@ -12,8 +12,8 @@
 
 depends(initrd, $(ROOT)/boot/initrd, initrd.img)
 
-LDFLAGS = -Tlink.ld -melf_i386
-ASMFLAGS = -felf
+LDFLAGS += -Tlink.ld -melf_i386
+ASMFLAGS += -felf
 QEMUFLAGS = -d cpu_reset
 
 OBJECTS = 	boot.o \
@@ -34,7 +34,8 @@
 			alloc.o \
 			vfs.o \
 			multiboot.o \
-			vfs_initrd.o
+			vfs_initrd.o \
+			syscall.o
 
 type(custom_link)
 
diff --git a/src/kernel/main.c b/src/kernel/main.c
index ead5232..22d4a35 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -8,12 +8,14 @@
 #include "vfs.h"
 #include "vfs_initrd.h"
 #include "multiboot.h"
+#include "syscall.h"
 
 int kmain(struct multiboot_info *mboot)
 {
 	init_paging();
 	init_vga();
 	init_descriptor_tables();
+	init_syscall();
 	vga_clear();
 
 	init_timer(20);
diff --git a/src/kernel/syscall.c b/src/kernel/syscall.c
new file mode 100644
index 0000000..6877e63
--- /dev/null
+++ b/src/kernel/syscall.c
@@ -0,0 +1,13 @@
+#include "syscall.h"
+#include "log.h"
+#include "pic.h"
+
+void do_syscall(struct registers *regs)
+{
+	kprintf("Syscall executed: %d\n", regs->eax);
+}
+
+void init_syscall()
+{
+	add_interrupt_handler(SYSCALL_INT, do_syscall);
+}
diff --git a/src/kernel/syscall.h b/src/kernel/syscall.h
new file mode 100644
index 0000000..c926ff1
--- /dev/null
+++ b/src/kernel/syscall.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#include "registers.h"
+
+#define SYSCALL_INT 0x80 // copy linux :)
+
+void do_syscall(struct registers *regs);
+void init_syscall();