From f6179ad9f9ba0277fe5f0767cb0985388bf1ee20 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 26 Dec 2018 21:31:46 +0100 Subject: Add slightly better kmalloc_aligned() and kfree_aligned(). Process page directories can now actually be freed. This could definitely be implemented in a nicer, less wasteful way, but this works for now. The spawn stress test can now run for a lot longer but eventually dies due to kmalloc running out of memory. --- Kernel/ProcFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/ProcFileSystem.cpp') diff --git a/Kernel/ProcFileSystem.cpp b/Kernel/ProcFileSystem.cpp index 75c2c6c048..8a5170b526 100644 --- a/Kernel/ProcFileSystem.cpp +++ b/Kernel/ProcFileSystem.cpp @@ -318,7 +318,7 @@ ByteBuffer procfs$kmalloc() { auto buffer = ByteBuffer::create_uninitialized(256); char* ptr = (char*)buffer.pointer(); - ptr += ksprintf(ptr, "eternal: %u\npage-aligned: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free); + ptr += ksprintf(ptr, "eternal: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free); buffer.trim(ptr - (char*)buffer.pointer()); return buffer; } -- cgit v1.2.3