]> git.corax.cc Git - corax/commitdiff
Fix return values of sys_inb() and sys_outb()
authorMatthias Kruk <m@m10k.eu>
Tue, 31 Dec 2019 06:05:37 +0000 (15:05 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 31 Dec 2019 06:05:37 +0000 (15:05 +0900)
kernel/core/posixcall.c

index 3cbb141a8be8340ca9c2651b9968dd48cabcfa15..5f20c6ced9ff8893ae8529f771b8ba52633dc298 100644 (file)
@@ -396,13 +396,12 @@ int sys_mmap(stack_frame_t *stk)
 
 int sys_inb(stack_frame_t *stk)
 {
-       stk->eax = io_inb((u16_t)stk->ebx);
-       return(0);
+    return(io_inb((u16_t)stk->ebx));
 }
 
 int sys_outb(stack_frame_t *stk)
 {
-       stk->eax = io_outb((u16_t)stk->ebx, (u8_t)stk->ecx);
+       io_outb((u16_t)stk->ebx, (u8_t)stk->ecx);
        return(0);
 }