diff options
author | Marvin Borner | 2020-08-15 14:21:52 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-15 14:21:52 +0200 |
commit | 32b8722128dfb4ca9e814940a23c2b22a283bb12 (patch) | |
tree | 80c881a7717dc129fd11baaf98cd8b226fd30c67 /kernel/drivers | |
parent | 162c84cfe6b4652bae213776944b910390553d41 (diff) |
Added some syscall wrappers
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/interrupts.c | 2 | ||||
-rw-r--r-- | kernel/drivers/timer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c index 0b94208..9088915 100644 --- a/kernel/drivers/interrupts.c +++ b/kernel/drivers/interrupts.c @@ -34,7 +34,7 @@ void idt_install() // Clear IDT by setting memory cells to 0 memset(&idt, 0, sizeof(struct idt_entry) * 256); - __asm__("lidt %0" : : "m"(idt_ptr)); + __asm__ volatile("lidt %0" : : "m"(idt_ptr)); } /** diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c index a3b4137..0207cc0 100644 --- a/kernel/drivers/timer.c +++ b/kernel/drivers/timer.c @@ -27,7 +27,7 @@ void timer_wait(u32 ticks) eticks = timer_ticks + ticks; while (timer_ticks < eticks) { - __asm__("sti//hlt//cli"); + __asm__ volatile("sti//hlt//cli"); } } |