From 903061551c8586638ffded560d644b336cf86599 Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Tue, 27 Jan 2026 12:41:17 -0800 Subject: [PATCH] Update ps2.c Remove the definition of the in/out assembly and add io.h include instead of inline --- kernel/ps2.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/kernel/ps2.c b/kernel/ps2.c index 3816b9b..d908bd9 100644 --- a/kernel/ps2.c +++ b/kernel/ps2.c @@ -1,14 +1,5 @@ #include "ps2.h" - -static inline void outb(uint16_t port, uint8_t val) { - __asm__ volatile ("outb %b0, %w1" : : "a"(val), "Nd"(port)); -} - -static inline uint8_t inb(uint16_t port) { - uint8_t ret; - __asm__ volatile ("inb %w1, %b0" : "=a"(ret) : "Nd"(port)); - return ret; -} +#include "io.h" /* --- Controller Synchronization --- */