From a37f94de44462f791e9b1f2a778ece8b081cd3e0 Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Tue, 27 Jan 2026 08:16:44 -0800 Subject: [PATCH] Update ps2.c Fixed the `__volatile__` into a volatile keyword --- kernel/ps2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/ps2.c b/kernel/ps2.c index 283fbb6..3816b9b 100644 --- a/kernel/ps2.c +++ b/kernel/ps2.c @@ -1,12 +1,12 @@ #include "ps2.h" static inline void outb(uint16_t port, uint8_t val) { - __asm__ __volatile__ ("outb %b0, %w1" : : "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 %w1, %b0" : "=a"(ret) : "Nd"(port)); + __asm__ volatile ("inb %w1, %b0" : "=a"(ret) : "Nd"(port)); return ret; }