summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2022-01-15 16:26:00 -0600
committerDanny Holman <dholman@gymli.org>2022-01-15 16:26:00 -0600
commit5fe27abd6204dd17787d7d0046015777444357ff (patch)
tree99ca9e66136b87d1548d5390913f59dbeb480a46
parent06121c7075e91056820c674f192be460ef5eb656 (diff)
arch: i386: fix coding style issue
Make the inline assembly calls consistent across different i386 files. Signed-off-by: Danny Holman <dholman@gymli.org>
-rw-r--r--arch/i386/include/kernel/pic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/include/kernel/pic.h b/arch/i386/include/kernel/pic.h
index a9387db..c15c02f 100644
--- a/arch/i386/include/kernel/pic.h
+++ b/arch/i386/include/kernel/pic.h
@@ -26,12 +26,12 @@
#define PIC_READ_ISR 0x0B
static inline void outb(uint16_t port, uint8_t value) {
- asm volatile("outb %0, %1" : : "a"(value), "Nd"(port));
+ __asm__ volatile("outb %0, %1" : : "a"(value), "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 %1, %0" : "=a"(ret) : "Nd"(port));
return ret;
}