feat: some refactors

This commit is contained in:
2021-02-02 22:35:28 +01:00
parent 4673a23db7
commit e8816cfdfd
10 changed files with 162 additions and 57 deletions

16
kernel/libk.c Normal file
View 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;");
}