arch: nios2: Rename _Fault to z_nios2_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_nios2_fault.

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

View file

@ -12,7 +12,7 @@
GTEXT(_exception) GTEXT(_exception)
/* import */ /* import */
GTEXT(_Fault) GTEXT(z_nios2_fault)
GTEXT(arch_swap) GTEXT(arch_swap)
#ifdef CONFIG_IRQ_OFFLOAD #ifdef CONFIG_IRQ_OFFLOAD
GTEXT(z_irq_do_offload) GTEXT(z_irq_do_offload)
@ -171,12 +171,12 @@ not_interrupt:
_exception_enter_fault: _exception_enter_fault:
/* If we get here, the exception wasn't in interrupt or an /* If we get here, the exception wasn't in interrupt or an
* invocation of irq_offload(). Let _Fault() handle it in * invocation of irq_offload(). Let z_nios2_fault() handle it in
* C domain * C domain
*/ */
mov r4, sp mov r4, sp
call _Fault call z_nios2_fault
jmpi _exception_exit jmpi _exception_exit
no_reschedule: no_reschedule:

View file

@ -102,7 +102,7 @@ static char *cause_str(uint32_t cause_code)
} }
#endif #endif
FUNC_NORETURN void _Fault(const struct arch_esf *esf) FUNC_NORETURN void z_nios2_fault(const struct arch_esf *esf)
{ {
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG) #if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)
/* Unfortunately, completely unavailable on Nios II/e cores */ /* Unfortunately, completely unavailable on Nios II/e cores */