arch: arc: Rename _Fault to z_arc_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_arc_fault.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
This commit is contained in:
Joel Holdsworth 2025-01-24 09:59:00 -08:00 committed by Benjamin Cabé
commit 4611e169e2
2 changed files with 4 additions and 4 deletions

View file

@ -346,7 +346,7 @@ static void dump_exception_info(uint32_t vector, uint32_t cause, uint32_t parame
* invokes the user provided routine k_sys_fatal_error_handler() which is * invokes the user provided routine k_sys_fatal_error_handler() which is
* responsible for implementing the error handling policy. * responsible for implementing the error handling policy.
*/ */
void _Fault(struct arch_esf *esf, uint32_t old_sp) void z_arc_fault(struct arch_esf *esf, uint32_t old_sp)
{ {
uint32_t vector, cause, parameter; uint32_t vector, cause, parameter;
uint32_t exc_addr = z_arc_v2_aux_reg_read(_ARC_V2_EFA); uint32_t exc_addr = z_arc_v2_aux_reg_read(_ARC_V2_EFA);

View file

@ -19,7 +19,7 @@
#include <zephyr/syscall.h> #include <zephyr/syscall.h>
#include <zephyr/arch/arc/asm-compat/assembler.h> #include <zephyr/arch/arc/asm-compat/assembler.h>
GTEXT(_Fault) GTEXT(z_arc_fault)
GTEXT(__reset) GTEXT(__reset)
GTEXT(__memory_error) GTEXT(__memory_error)
GTEXT(__instruction_error) GTEXT(__instruction_error)
@ -99,11 +99,11 @@ _exc_entry:
_save_exc_regs_into_stack _save_exc_regs_into_stack
/* sp is parameter of _Fault */ /* sp is parameter of z_arc_fault */
MOVR r0, sp MOVR r0, sp
/* ilink is the thread's original sp */ /* ilink is the thread's original sp */
MOVR r1, ilink MOVR r1, ilink
jl _Fault jl z_arc_fault
_exc_return: _exc_return:
/* the exception cause must be fixed in exception handler when exception returns /* the exception cause must be fixed in exception handler when exception returns