summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-08-30 12:37:38 +0000
committerJoursoir <chat@joursoir.net>2021-08-30 12:37:38 +0000
commita4d749210d4a628552717e9d3fe3ebf7ed84f1f0 (patch)
tree57bae5d3b1b5d9092309f9e3efa307028960a6a3
parentd206791e894510d04adf6b24d6da729ca85604e7 (diff)
downloadmfsos-a4d749210d4a628552717e9d3fe3ebf7ed84f1f0.tar.gz
mfsos-a4d749210d4a628552717e9d3fe3ebf7ed84f1f0.tar.bz2
mfsos-a4d749210d4a628552717e9d3fe3ebf7ed84f1f0.zip
move the arch specific code for port IO to the correct place
-rw-r--r--arch/x86/include/asm/io.h (renamed from kernel/i386.h)8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/i386.h b/arch/x86/include/asm/io.h
index 14f89b7..02009d5 100644
--- a/kernel/i386.h
+++ b/arch/x86/include/asm/io.h
@@ -1,5 +1,7 @@
-#ifndef KERNEL_I386
-#define KERNEL_I386
+#ifndef ASM_X86_IO_H
+#define ASM_X86_IO_H
+
+#include <stdint.h>
static inline void outb(uint16_t port, uint8_t data)
{
@@ -10,4 +12,4 @@ static inline void outb(uint16_t port, uint8_t data)
);
}
-#endif /* KERNEL_I386 */
+#endif /* ASM_X86_IO_H */