arm: Remove _ARMV4_Exception_reserved_default()

The default exception handler uses the Save Program Status Register
(SPSR), however, if _ARMV4_Exception_reserved_default() would get
called, the state of this register is unpredictable.  Replace potential
calls to _ARMV4_Exception_reserved_default() with an undefined
instruction.
This commit is contained in:
Sebastian Huber
2024-08-28 04:19:39 +02:00
parent ea0e89b9a0
commit 2174ec336a
10 changed files with 22 additions and 36 deletions

View File

@@ -7,7 +7,6 @@ b _ARMV4_Exception_undef_default
b _ARMV4_Exception_swi_default
b _ARMV4_Exception_pref_abort_default
b _ARMV4_Exception_data_abort_default
b _ARMV4_Exception_reserved_default
b _ARMV4_Exception_irq_default
b _ARMV4_Exception_fiq_default

View File

@@ -141,7 +141,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt

View File

@@ -134,7 +134,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt

View File

@@ -49,7 +49,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt

View File

@@ -138,7 +138,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt

View File

@@ -137,7 +137,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt

View File

@@ -107,7 +107,7 @@ bsp_start_vector_table_begin:
.Lhandler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_irq:
@@ -121,38 +121,38 @@ bsp_start_vector_table_end:
#ifdef BSP_START_IN_HYP_SUPPORT
bsp_start_hyp_vector_table_begin:
ldr pc, .Lhandler_addr_hyp_reset
udf
ldr pc, .Lhandler_addr_hyp_undef
ldr pc, .Lhandler_addr_hyp_swi
ldr pc, .Lhandler_addr_hyp_prefetch
ldr pc, .Lhandler_addr_hyp_abort
ldr pc, .Lhandler_addr_hyp_hyp
ldr pc, .Lhandler_addr_hyp_irq
ldr pc, .Lhandler_addr_hyp_fiq
udf
udf
udf
udf
udf
udf
.Lhandler_addr_hyp_reset:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_undef:
.word _ARMV4_Exception_reserved_default
.word _ARMV4_Exception_undef_default
.Lhandler_addr_hyp_swi:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_prefetch:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_abort:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_hyp:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_irq:
.word _ARMV4_Exception_reserved_default
.word 0
.Lhandler_addr_hyp_fiq:
.word _ARMV4_Exception_reserved_default
.word 0
#endif
/* Start entry */

View File

@@ -187,7 +187,7 @@ handler_addr_abort:
.word _ARMV4_Exception_data_abort_default
handler_addr_reserved:
.word _ARMV4_Exception_reserved_default
.word 0
handler_addr_irq:
.word _ARMV4_Exception_interrupt