diff options
Diffstat (limited to 'src/kernel/io/io.c')
-rw-r--r-- | src/kernel/io/io.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c index 858f968..c4dad52 100644 --- a/src/kernel/io/io.c +++ b/src/kernel/io/io.c @@ -22,6 +22,21 @@ uint32_t inl(uint16_t port) return value; } +void cli() +{ + asm volatile ("cli"); +} + +void sti() +{ + asm volatile ("sti"); +} + +void hlt() +{ + asm volatile ("hlt"); +} + void outb(uint16_t port, uint8_t data) { asm ("outb %0, %1"::"a" (data), "Nd"(port)); @@ -58,4 +73,4 @@ void serial_put(char ch) { while (is_transmit_empty() == 0); outb(0x3f8, (uint8_t) ch); -}
\ No newline at end of file +} |