mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Kernel/aarch64: Remove static from dump_registers
This allows the function to be called from other translation units, in particular this allows the CrashHandler.cpp file to be shared between aarch64 and x86_64.
This commit is contained in:
parent
5cb37038a3
commit
7ba9bc6338
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/7ba9bc6338 Pull-request: https://github.com/SerenityOS/serenity/pull/17249 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/nico ✅ Reviewed-by: https://github.com/supercomputer7
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Arch/CPU.h>
|
||||
#include <Kernel/Arch/Interrupts.h>
|
||||
#include <Kernel/Arch/PageFault.h>
|
||||
#include <Kernel/Arch/TrapFrame.h>
|
||||
|
@ -17,7 +18,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static void dump_registers(RegisterState const& regs)
|
||||
void dump_registers(RegisterState const& regs)
|
||||
{
|
||||
dbgln(" x0={:p} x1={:p} x2={:p} x3={:p} x4={:p}", regs.x[0], regs.x[1], regs.x[2], regs.x[3], regs.x[4]);
|
||||
dbgln(" x5={:p} x6={:p} x7={:p} x8={:p} x9={:p}", regs.x[5], regs.x[6], regs.x[7], regs.x[8], regs.x[9]);
|
||||
|
|
Loading…
Reference in a new issue