removed fluff from kernel.c

This commit is contained in:
shockrahwow 2019-11-29 01:55:37 -08:00
parent 734806dfd4
commit 160389d470
2 changed files with 0 additions and 17 deletions

View File

@ -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() {

View File

@ -1,6 +1,4 @@
#include "types.h"
void kinit();
void kprintp(const u32);
void kprints(const char*);
void kmain();