From d76cf5b57e4ded3aa07640b80f7486e9044fd9e8 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Fri, 24 Jan 2025 10:01:30 -0800 Subject: [PATCH] arch: mips: Rename _Fault to z_mips_fault The exception fault handler function is named _Fault which is inconsistent with all other arch-specific functions present in Zephyr. This patch replaces the name with z_mips_fault. Signed-off-by: Joel Holdsworth --- arch/mips/core/fatal.c | 2 +- arch/mips/core/isr.S | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/core/fatal.c b/arch/mips/core/fatal.c index a53e5bb0f5e..aee7a597d4d 100644 --- a/arch/mips/core/fatal.c +++ b/arch/mips/core/fatal.c @@ -84,7 +84,7 @@ static char *cause_str(unsigned long cause) } } -void _Fault(struct arch_esf *esf) +void z_mips_fault(struct arch_esf *esf) { unsigned long cause; diff --git a/arch/mips/core/isr.S b/arch/mips/core/isr.S index f2f2f342053..1532d06fe5e 100644 --- a/arch/mips/core/isr.S +++ b/arch/mips/core/isr.S @@ -66,7 +66,7 @@ addi sp, sp, __struct_arch_esf_SIZEOF ; /* imports */ -GTEXT(_Fault) +GTEXT(z_mips_fault) GTEXT(_k_neg_eagain) GTEXT(z_thread_mark_switched_in) @@ -125,7 +125,7 @@ SECTION_FUNC(exception.other, _mips_interrupt) unhandled: move a0, sp - jal _Fault + jal z_mips_fault eret is_kernel_syscall: