mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Make sure crash dumps are properly aligned on x86_64
This commit is contained in:
parent
0e0985f15c
commit
b4272d731f
Notes:
sideshowbarker
2024-07-18 08:36:34 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/b4272d731f6 Pull-request: https://github.com/SerenityOS/serenity/pull/8925 Reviewed-by: https://github.com/awesomekling
2 changed files with 14 additions and 2 deletions
|
@ -1121,7 +1121,13 @@ void MemoryManager::unregister_region(Region& region)
|
|||
void MemoryManager::dump_kernel_regions()
|
||||
{
|
||||
dbgln("Kernel regions:");
|
||||
dbgln("BEGIN END SIZE ACCESS NAME");
|
||||
#if ARCH(I386)
|
||||
auto addr_padding = "";
|
||||
#else
|
||||
auto addr_padding = " ";
|
||||
#endif
|
||||
dbgln("BEGIN{} END{} SIZE{} ACCESS NAME",
|
||||
addr_padding, addr_padding, addr_padding);
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
for (auto& region : m_kernel_regions) {
|
||||
dbgln("{:p} -- {:p} {:p} {:c}{:c}{:c}{:c}{:c}{:c} {}",
|
||||
|
|
|
@ -316,7 +316,13 @@ KResultOr<Vector<Region*, 2>> Space::try_split_region_around_range(const Region&
|
|||
void Space::dump_regions()
|
||||
{
|
||||
dbgln("Process regions:");
|
||||
dbgln("BEGIN END SIZE ACCESS NAME");
|
||||
#if ARCH(I386)
|
||||
auto addr_padding = "";
|
||||
#else
|
||||
auto addr_padding = " ";
|
||||
#endif
|
||||
dbgln("BEGIN{} END{} SIZE{} ACCESS NAME",
|
||||
addr_padding, addr_padding, addr_padding);
|
||||
|
||||
ScopedSpinLock lock(m_lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue