aboutsummaryrefslogtreecommitdiff
path: root/libc/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/cpu.c')
-rw-r--r--libc/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/cpu.c b/libc/cpu.c
index 5ed9de9..0425dc8 100644
--- a/libc/cpu.c
+++ b/libc/cpu.c
@@ -47,6 +47,7 @@ void outl(u16 port, u32 data)
__asm__ volatile("outl %0, %1" ::"a"(data), "Nd"(port));
}
+#ifdef kernel
void cli()
{
__asm__ volatile("cli");
@@ -73,3 +74,4 @@ void loop()
cli();
idle();
}
+#endif