From 72f55421fb61b750512f324d284b30e3e67e36e0 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 13 Mar 2024 22:33:38 +0100 Subject: kernel/malloc: slight rework (it's still bad), store more metadata --- src/kernel/arch/amd64/boot.c | 2 +- src/kernel/arch/amd64/driver/fsroot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/amd64') diff --git a/src/kernel/arch/amd64/boot.c b/src/kernel/arch/amd64/boot.c index 76bc864..19f249a 100644 --- a/src/kernel/arch/amd64/boot.c +++ b/src/kernel/arch/amd64/boot.c @@ -86,7 +86,7 @@ void kmain_early(void *mbi) { } void shutdown(void) { - kprintf("shutting off\n"); + kprintf("[kern] shutting off\n"); mem_debugprint(); cpu_shutdown(); } diff --git a/src/kernel/arch/amd64/driver/fsroot.c b/src/kernel/arch/amd64/driver/fsroot.c index 2684b72..228232e 100644 --- a/src/kernel/arch/amd64/driver/fsroot.c +++ b/src/kernel/arch/amd64/driver/fsroot.c @@ -53,7 +53,7 @@ handle(VfsReq *req) case Hdev: if (!dev) { dev_len = get_dev(NULL); - dev = kmalloc(dev_len); + dev = kmalloc(dev_len, "/ cache"); get_dev(dev); } lst = dev; -- cgit v1.2.3