From 7ba9bc63380d0bc8e8c603acac2f836724b92bf5 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Mon, 30 Jan 2023 11:03:26 +0100 Subject: [PATCH] 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. --- Kernel/Arch/aarch64/Interrupts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/Arch/aarch64/Interrupts.cpp b/Kernel/Arch/aarch64/Interrupts.cpp index d4301504f5..2e2b899c5e 100644 --- a/Kernel/Arch/aarch64/Interrupts.cpp +++ b/Kernel/Arch/aarch64/Interrupts.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include @@ -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]);