feat: some refactors
This commit is contained in:
16
kernel/libk.c
Normal file
16
kernel/libk.c
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// Created by rick on 02-02-21.
|
||||
//
|
||||
|
||||
#include "libk.h"
|
||||
#include "kprint.h"
|
||||
|
||||
void k_wait_for_interrupt() {
|
||||
__asm__ __volatile__("hlt;");
|
||||
}
|
||||
|
||||
void k_panic() {
|
||||
kprint("PANIC!");
|
||||
__asm__ __volatile__("cli;"
|
||||
"hlt;");
|
||||
}
|
||||
Reference in New Issue
Block a user