From c5b0305b3a6e7e6ec6742b99ceb6a1a0b3c6e286 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 May 2020 23:50:24 +0200 Subject: Interrupt analysis - removed many useless cli/sti --- src/kernel/syscall/syscall.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/kernel/syscall/syscall.c') diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index d46d3fa..c98707f 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -24,8 +24,6 @@ u32 (*syscalls[])() = { [SYS_HALT] = (u32(*)())halt_loop, // DEBUG! void syscall_handler(struct regs *r) { - cli(); - if (r->eax >= sizeof(syscalls) / sizeof(*syscalls)) return; @@ -37,7 +35,6 @@ void syscall_handler(struct regs *r) r->edx, r->esi, r->edi); r->eax = location(r->ebx, r->ecx, r->edx, r->esi, r->edi); - sti(); } void syscalls_install() -- cgit v1.2.3