mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
Kernel: Make and use KERNEL_BASE
This is to make the 0xc0000000 less a magic number, and will make it easier in the future to move the Kernel around
This commit is contained in:
parent
8b44aa7885
commit
65566d6868
Notes:
sideshowbarker
2024-07-18 11:23:47 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 65566d6868
Pull-request: https://github.com/SerenityOS/serenity/pull/8297
7 changed files with 12 additions and 9 deletions
|
@ -340,7 +340,7 @@ void Process::crash(int signal, FlatPtr ip, bool out_of_memory)
|
|||
if (out_of_memory) {
|
||||
dbgln("\033[31;1mOut of memory\033[m, killing: {}", *this);
|
||||
} else {
|
||||
if (ip >= 0xc0000000 && g_kernel_symbols_available) {
|
||||
if (ip >= KERNEL_BASE && g_kernel_symbols_available) {
|
||||
auto* symbol = symbolicate_kernel_address(ip);
|
||||
dbgln("\033[31;1m{:p} {} +{}\033[0m\n", ip, (symbol ? demangle(symbol->name) : "(k?)"), (symbol ? ip - symbol->address : 0));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue