Skip to content

Commit 4611e16

Browse files
jholkartben
authored andcommitted
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 <[email protected]>
1 parent 9083e19 commit 4611e16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/arc/core/fault.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static void dump_exception_info(uint32_t vector, uint32_t cause, uint32_t parame
346346
* invokes the user provided routine k_sys_fatal_error_handler() which is
347347
* responsible for implementing the error handling policy.
348348
*/
349-
void _Fault(struct arch_esf *esf, uint32_t old_sp)
349+
void z_arc_fault(struct arch_esf *esf, uint32_t old_sp)
350350
{
351351
uint32_t vector, cause, parameter;
352352
uint32_t exc_addr = z_arc_v2_aux_reg_read(_ARC_V2_EFA);

arch/arc/core/fault_s.S

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <zephyr/syscall.h>
2020
#include <zephyr/arch/arc/asm-compat/assembler.h>
2121

22-
GTEXT(_Fault)
22+
GTEXT(z_arc_fault)
2323
GTEXT(__reset)
2424
GTEXT(__memory_error)
2525
GTEXT(__instruction_error)
@@ -99,11 +99,11 @@ _exc_entry:
9999

100100
_save_exc_regs_into_stack
101101

102-
/* sp is parameter of _Fault */
102+
/* sp is parameter of z_arc_fault */
103103
MOVR r0, sp
104104
/* ilink is the thread's original sp */
105105
MOVR r1, ilink
106-
jl _Fault
106+
jl z_arc_fault
107107

108108
_exc_return:
109109
/* the exception cause must be fixed in exception handler when exception returns

0 commit comments

Comments
 (0)