aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall
diff options
context:
space:
mode:
authorMarvin Borner2020-05-09 23:50:24 +0200
committerMarvin Borner2020-05-09 23:50:24 +0200
commitc5b0305b3a6e7e6ec6742b99ceb6a1a0b3c6e286 (patch)
tree173965f614435bb9740d05bbc365aba7b76d7e45 /src/kernel/syscall
parente350804dc78ab01aaca6aba33792a652535028d9 (diff)
Interrupt analysis - removed many useless cli/sti
Diffstat (limited to 'src/kernel/syscall')
-rw-r--r--src/kernel/syscall/actions/sys_wait.c1
-rw-r--r--src/kernel/syscall/syscall.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/kernel/syscall/actions/sys_wait.c b/src/kernel/syscall/actions/sys_wait.c
index c716221..a252d1f 100644
--- a/src/kernel/syscall/actions/sys_wait.c
+++ b/src/kernel/syscall/actions/sys_wait.c
@@ -4,7 +4,6 @@
u32 sys_wait(u32 pid, u32 *status, u32 options)
{
- sti();
u32 ret;
if (pid < 0) { // Wait for any process in gid to die
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()