From cc92ade8fd3056a21d24fac76d376463e8f9b9c2 Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Mon, 26 Jan 2026 17:06:44 -0800 Subject: [PATCH] Update ps2.c Fixing asm to __asm__ --- kernel/ps2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/ps2.c b/kernel/ps2.c index 68f4fa9..283fbb6 100644 --- a/kernel/ps2.c +++ b/kernel/ps2.c @@ -1,13 +1,12 @@ #include "ps2.h" -/* --- Low Level I/O Helpers --- */ static inline void outb(uint16_t port, uint8_t val) { - asm volatile ("outb %0, %1" : : "a"(val), "Nd"(port)); + __asm__ __volatile__ ("outb %b0, %w1" : : "a"(val), "Nd"(port)); } static inline uint8_t inb(uint16_t port) { uint8_t ret; - asm volatile ("inb %1, %0" : "=a"(ret) : "Nd"(port)); + __asm__ __volatile__ ("inb %w1, %b0" : "=a"(ret) : "Nd"(port)); return ret; }