From 3d96e0956d1c7471e14f4ffd0e12a3a42cb48b3b Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Tue, 31 Dec 2019 15:05:37 +0900 Subject: [PATCH] Fix return values of sys_inb() and sys_outb() --- kernel/core/posixcall.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.47.3