Kernel: kmalloc does not dump stack trace

dump_stack_trace() page faults and i dont feel like debugging this
now :)
This commit is contained in:
Bananymous 2023-04-21 13:45:13 +03:00
parent 3ad0d2328d
commit d9068eebb5
2 changed files with 3 additions and 2 deletions

View File

@ -315,7 +315,7 @@ no_memory:
dwarnln("could not allocate {H} bytes ({} aligned)", size, align);
dwarnln(" {6H} free (fixed)", s_kmalloc_fixed_info.free);
dwarnln(" {6H} free", s_kmalloc_info.free);
Debug::dump_stack_trace();
//Debug::dump_stack_trace();
ASSERT(!is_corrupted());
return nullptr;

View File

@ -189,7 +189,8 @@ static void init2(void* tty1)
MUST(Process::create_kernel(
[](void*)
{
MUST(LibELF::ELF::load_from_file("/bin/test"sv));
if (auto res = LibELF::ELF::load_from_file("/boot/banan-os.kernel"sv); res.is_error())
dwarnln("{}", res.error());
Process::current().exit();
}, nullptr
));