diff options
author | dzwdz | 2024-03-13 22:33:38 +0100 |
---|---|---|
committer | dzwdz | 2024-03-13 22:46:47 +0100 |
commit | 72f55421fb61b750512f324d284b30e3e67e36e0 (patch) | |
tree | 8933dc013580a2440730644807a03606c6805547 /src/kernel/arch/amd64 | |
parent | e47412d940db4e9be2d05608272e30f560a275d0 (diff) |
kernel/malloc: slight rework (it's still bad), store more metadata
Diffstat (limited to 'src/kernel/arch/amd64')
-rw-r--r-- | src/kernel/arch/amd64/boot.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/amd64/driver/fsroot.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |