From: Matthias Kruk Date: Tue, 31 Dec 2019 06:05:37 +0000 (+0900) Subject: Fix return values of sys_inb() and sys_outb() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=3d96e0956d1c7471e14f4ffd0e12a3a42cb48b3b;p=corax Fix return values of sys_inb() and sys_outb() --- diff --git a/kernel/core/posixcall.c b/kernel/core/posixcall.c index 3cbb141..5f20c6c 100644 --- a/kernel/core/posixcall.c +++ b/kernel/core/posixcall.c @@ -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); }