mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-29 16:15:20 -08:00
Update ps2.c
Fixed the `__volatile__` into a volatile keyword
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
#include "ps2.h"
|
#include "ps2.h"
|
||||||
|
|
||||||
static inline void outb(uint16_t port, uint8_t val) {
|
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) {
|
static inline uint8_t inb(uint16_t port) {
|
||||||
uint8_t ret;
|
uint8_t ret;
|
||||||
__asm__ __volatile__ ("inb %w1, %b0" : "=a"(ret) : "Nd"(port));
|
__asm__ volatile ("inb %w1, %b0" : "=a"(ret) : "Nd"(port));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user