arch: arm64: Remove unused macro parameters
Remove z_arm64_{enter,exit}_exc parameter leftovers. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
89928c3c8b
commit
9e897ea2c3
|
@ -33,7 +33,7 @@ GDATA(_sw_isr_table)
|
|||
|
||||
GTEXT(_isr_wrapper)
|
||||
SECTION_FUNC(TEXT, _isr_wrapper)
|
||||
z_arm64_enter_exc x0, x1, x2
|
||||
z_arm64_enter_exc x0, x1
|
||||
|
||||
/* ++(_kernel->nested) to be checked by arch_is_in_isr() */
|
||||
inc_nest_counter x0, x1
|
||||
|
@ -109,5 +109,5 @@ exit:
|
|||
#ifdef CONFIG_STACK_SENTINEL
|
||||
bl z_check_stack_sentinel
|
||||
#endif
|
||||
z_arm64_exit_exc x0, x1, x2
|
||||
z_arm64_exit_exc x0, x1
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* @return N/A
|
||||
*/
|
||||
|
||||
.macro z_arm64_enter_exc xreg0, xreg1, xreg2
|
||||
.macro z_arm64_enter_exc xreg0, xreg1
|
||||
/*
|
||||
* Two things can happen:
|
||||
*
|
||||
|
@ -43,9 +43,9 @@
|
|||
* Store SPSR_ELn and ELR_ELn. This is needed to support nested
|
||||
* exception handlers
|
||||
*/
|
||||
mrs \xreg1, spsr_el1
|
||||
mrs \xreg2, elr_el1
|
||||
stp \xreg1, \xreg2, [sp, #-16]!
|
||||
mrs \xreg0, spsr_el1
|
||||
mrs \xreg1, elr_el1
|
||||
stp \xreg0, \xreg1, [sp, #-16]!
|
||||
.endm
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@
|
|||
* @return N/A
|
||||
*/
|
||||
|
||||
.macro z_arm64_exit_exc xreg0, xreg1, xreg2
|
||||
.macro z_arm64_exit_exc xreg0, xreg1
|
||||
/*
|
||||
* Restore SPSR_ELn and ELR_ELn. This is needed to support nested
|
||||
* exception handlers
|
||||
|
|
|
@ -97,7 +97,7 @@ SECTION_FUNC(TEXT, z_arm64_context_switch)
|
|||
|
||||
GTEXT(z_arm64_svc)
|
||||
SECTION_FUNC(TEXT, z_arm64_svc)
|
||||
z_arm64_enter_exc x2, x3, x4
|
||||
z_arm64_enter_exc x2, x3
|
||||
|
||||
mrs x0, esr_el1
|
||||
lsr x1, x0, #26
|
||||
|
@ -141,7 +141,7 @@ context_switch:
|
|||
bl z_arm64_context_switch
|
||||
|
||||
exit:
|
||||
z_arm64_exit_exc x0, x1, x2
|
||||
z_arm64_exit_exc x0, x1
|
||||
|
||||
inv:
|
||||
mov x0, #0 /* K_ERR_CPU_EXCEPTION */
|
||||
|
|
|
@ -95,7 +95,7 @@ SECTION_SUBSEC_FUNC(exc_vector_table,_vector_table_section,_vector_table)
|
|||
|
||||
/* Current EL with SPx / SError */
|
||||
.align 7
|
||||
z_arm64_enter_exc x0, x1, x2
|
||||
z_arm64_enter_exc x0, x1
|
||||
|
||||
mov x1, sp
|
||||
mov x0, #0 /* K_ERR_CPU_EXCEPTION */
|
||||
|
|
Loading…
Reference in a new issue