aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inc/cpu.h')
-rw-r--r--libc/inc/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/inc/cpu.h b/libc/inc/cpu.h
index 2d367cb..c25dc60 100644
--- a/libc/inc/cpu.h
+++ b/libc/inc/cpu.h
@@ -13,11 +13,14 @@ void insl(u16 port, void *addr, int n);
void outb(u16 port, u8 data);
void outw(u16 port, u16 data);
void outl(u16 port, u32 data);
+
+#ifdef kernel
void cli();
void sti();
void hlt();
void idle();
void loop();
+#endif
static inline void spinlock(int *ptr)
{