removed fluff from kernel.c
This commit is contained in:
parent
734806dfd4
commit
160389d470
15
kernel.c
15
kernel.c
@ -13,21 +13,6 @@ void kinit() {
|
||||
test_dispatcher();
|
||||
}
|
||||
|
||||
void kprintp(const u32 ptr) {
|
||||
// Prints our hex version of whatever is given
|
||||
const char _chars[] = "0123456789abcdef";
|
||||
u32 idx = 0; // used as hash into the _chars mapping
|
||||
// iterate over each nibble
|
||||
for(u32 i = 0 ;i < 8;i++) {
|
||||
idx = (ptr << (i * 4)) & 0xf0000000;
|
||||
idx = idx >> 28;
|
||||
putch(_chars[idx]);
|
||||
}
|
||||
}
|
||||
|
||||
void kprints(const char* s) {
|
||||
printf(s);
|
||||
}
|
||||
|
||||
// Should kmain return, we fall back to the loader which then just keeps in a hung state
|
||||
void kmain() {
|
||||
|
Loading…
Reference in New Issue
Block a user