zephyr/arch
Alexander Razinkov 176713abfe arch: riscv: Trap handler alignment configuration
RISC-V Spec requires minimum alignment of trap handling code to be
dependent from MTVEC.BASE field size. Minimum alignment for RISC-V
platforms is 4 bytes, but maximum is platform or application-specific.

Currently there is no common approach to align the trap handling
code for RISC-V and some platforms use custom wrappers to align
_isr_wrapper properly.

This change introduces a generic solution,
CONFIG_RISCV_TRAP_HANDLER_ALIGNMENT configuration option which sets
the alignment of a RISC-V trap handling code.

The existing custom solutions for some platforms remain operational,
since the default alignment is set to minimal possible (4 bytes)
and will be overloaded by potentially larger alignment of custom solutions.

Signed-off-by: Alexander Razinkov <alexander.razinkov@syntacore.com>
2023-09-05 16:16:46 +02:00
..
arc arch: move exc_handle.h under zephyr/arch/common 2023-08-31 09:19:19 -04:00
arm boards: fvp_baser_aemv8r_aarch32: disable d-cache 2023-09-01 13:23:26 +02:00
arm64 arch: arm64: arm_mpu: enable d-cache 2023-09-01 13:23:26 +02:00
common arch: common: use zephyr_library for all source files 2023-08-16 15:00:49 +02:00
mips COVERAGE: Fix COVERAGE_GCOV dependencies 2023-08-24 15:36:31 +02:00
nios2 arch: nios2: Remove unused absolute symbols 2023-04-18 10:51:28 -04:00
posix native simulator: Add property to collect libraries to link w runner 2023-09-04 13:16:58 +02:00
riscv arch: riscv: Trap handler alignment configuration 2023-09-05 16:16:46 +02:00
sparc COVERAGE: Fix COVERAGE_GCOV dependencies 2023-08-24 15:36:31 +02:00
x86 drivers: loapic: add device tree support for loapic 2023-09-01 16:36:18 +02:00
xtensa xtensa: mmu: allow SoC to do additional MMU init steps 2023-08-26 16:50:40 -04:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig kernel: canaries: Allow using TLS to store it 2023-08-08 19:08:04 -04:00