From 95fbb9bfdc5691a7f22a20196eba4a9a95f473de Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 25 Jul 2018 15:34:55 -0700 Subject: 4407 - error message on unimplemented syscalls Fixes #9. --- subx/019syscalls.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subx') diff --git a/subx/019syscalls.cc b/subx/019syscalls.cc index ec28515b..77a8d698 100644 --- a/subx/019syscalls.cc +++ b/subx/019syscalls.cc @@ -26,6 +26,8 @@ void process_int80() { case 4: Reg[EAX].i = write(/*file descriptor*/Reg[EBX].u, /*memory buffer*/mem_addr_u8(Reg[ECX].u), /*size*/Reg[EDX].u); break; + default: + raise << HEXWORD << EIP << ": unimplemented syscall " << Reg[EAX].u << '\n' << end(); } } -- cgit 1.4.1-2-gfad0