1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/cpu/pmp_noexec_ram
2023-06-28 11:55:34 +02:00
..
tests cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00
main.c cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00
Makefile cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00
README.md cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00

mpu_noexec_ram

Tests for the pmp_noexec_ram pseudomodule. Only supported on RISC-V devices with PMP.

Output

With USEMODULE += pmp_noexec_ram in Makefile this application should execute a kernel panic, stating Instruction access fault (0x01) in the mcause register. Without this pseudomodule activated, the hard fault will be triggered by Illegal instruction (0x02) instead.