Kernel: Stop stacktrace dump on null bp
This makes stack traces not crash before IDT is initialized
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Debug
|
||||
else for (size_t depth = 0; depth < 64; depth++)
|
||||
{
|
||||
BAN::Formatter::print(Debug::putchar, " {}\r\n", reinterpret_cast<void*>(frame.ip));
|
||||
if (!safe_user_memcpy(&frame, frame.bp, sizeof(stackframe)))
|
||||
if (frame.bp == nullptr || !safe_user_memcpy(&frame, frame.bp, sizeof(stackframe)))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user