summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-22 17:57:57 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-22 17:57:57 +0100
commiteca57656bfb384583c1c4b34de46cde6b36d6694 (patch)
tree849d76c8bac2c663e7097506b1ecc66b6982dc56 /asm
parent05156e002e30032e8c1081d47f50dd98b1241dd6 (diff)
added call_unhandled for unhandled syscalls
Diffstat (limited to 'asm')
-rw-r--r--asm/int_syscall_handler.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm
index a2236fe..3ffdd25 100644
--- a/asm/int_syscall_handler.asm
+++ b/asm/int_syscall_handler.asm
@@ -11,6 +11,7 @@ global int_syscall_handler
[extern syscall_isatty]
[extern syscall_lseek]
[extern syscall_sbrk]
+[extern syscall_unhandled]
[bits 32]
int_syscall_handler:
@@ -54,6 +55,10 @@ int_syscall_handler:
cmp eax, 70
je call_sbrk
+ push eax
+ jmp call_unhandled
+
+
done:
mov ebx,eax
@@ -112,6 +117,11 @@ call_exit:
call syscall_exit
jmp done
+call_unhandled:
+ call syscall_unhandled
+ jmp done ;this should never be called, since unhandled causes kernel panic
+
+
;;; THIS CALLS NEED REENABLE INTERRUPTS BEFORE calling workers
call_read: