summaryrefslogtreecommitdiff
path: root/include/asm
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm')
-rw-r--r--include/asm/io.h4
-rw-r--r--include/asm/system.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/include/asm/io.h b/include/asm/io.h
index 6ca5bbc..1c2e5bc 100644
--- a/include/asm/io.h
+++ b/include/asm/io.h
@@ -6,9 +6,9 @@
#define inb(port) ({ \
unsigned char _val; \
- asm volatile ("inb %%dx, %%al" : "=a" (_val) : "d" (port)); \
+ __asm__ volatile ("inb %%dx, %%al" : "=a" (_val) : "d" (port)); \
_val; \
})
#define outb(port, val) \
- asm volatile ("outb %%al, %%dx" : : "d" (port), "a" (val));
+ __asm__ volatile ("outb %%al, %%dx" : : "d" (port), "a" (val));
diff --git a/include/asm/system.h b/include/asm/system.h
new file mode 100644
index 0000000..02c2f62
--- /dev/null
+++ b/include/asm/system.h
@@ -0,0 +1,3 @@
+#include <kernel/sched.h>
+
+volatile void switch_to(struct task_struct*, struct task_state*);