From 160389d47051d7a47e6d1d32d4e8f515f540a7f6 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Fri, 29 Nov 2019 01:55:37 -0800 Subject: [PATCH] removed fluff from kernel.c --- kernel.c | 15 --------------- kernel.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/kernel.c b/kernel.c index cd6609b..9eee839 100644 --- a/kernel.c +++ b/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() { diff --git a/kernel.h b/kernel.h index 9b1f01f..0cf4dc0 100644 --- a/kernel.h +++ b/kernel.h @@ -1,6 +1,4 @@ #include "types.h" void kinit(); -void kprintp(const u32); -void kprints(const char*); void kmain();