feat: reformatted code base to be more standard
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
// Created by rick on 02-02-21.
|
||||
//
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <libk/kprint.h>
|
||||
#include <attributes.h>
|
||||
#include <libk/libk.h>
|
||||
#include <myke/libk/kprint.h>
|
||||
#include <myke/attributes.h>
|
||||
#include <myke/libk/libk.h>
|
||||
|
||||
bool k_addr_in_kspace(void* addr) {
|
||||
bool k_addr_in_kspace(void *addr) {
|
||||
return addr > kernel_start && addr < kernel_end;
|
||||
}
|
||||
|
||||
@@ -23,7 +22,7 @@ void noreturn k_panics(const char *msg) {
|
||||
|
||||
void noreturn k_panic() {
|
||||
kprint_sync("PANIC!");
|
||||
while (true) {
|
||||
while (1) {
|
||||
__asm__ __volatile__("cli;"
|
||||
"hlt;");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user