Skip to content

Commit ed1909f

Browse files
committed
soc: riscv: sensry: Remove __soc_is_irq and disable unused config
The sy1xx SoC enabled CONFIG_RISCV_SOC_EXCEPTION_FROM_IRQ and provided its own __soc_is_irq implementation. However, the behavior matches the default implementation, making the override unnecessary. This commit removes the custom implementation and disables the config option to remove unnecessary code. Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
1 parent dfdbbd1 commit ed1909f

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

soc/sensry/ganymed/sy1xx/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ config USE_DT_CODE_PARTITION
6161
config RISCV_SOC_HAS_CUSTOM_IRQ_LOCK_OPS
6262
default n
6363

64-
config RISCV_SOC_EXCEPTION_FROM_IRQ
65-
default y
66-
6764
config INIT_STACKS
6865
default y
6966

soc/sensry/ganymed/sy1xx/common/crt0.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ __prestart_routine:
2626
/* Call into Zephyr initialization. */
2727
jal x0, __start
2828

29-
GTEXT(__soc_is_irq)
30-
SECTION_FUNC(exception.other, __soc_is_irq)
31-
csrr a0, mcause
32-
srli a0, a0, 31
33-
ret
34-
3529
GTEXT(__soc_handle_irq)
3630
SECTION_FUNC(exception.other, __soc_handle_irq)
3731
## clear pending interrupt

0 commit comments

Comments
 (0)