mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-10 06:15:32 -05:00
PoC: Trap when executing from ROM in app mode
Only allow executing from ROM when in one of the following execution contexts: - Firmware mode - IRQ_SYSCALL_LO - IRQ_SYSCALL_HI Co-authored-by: Daniel Jobson <jobson@tillitis.se>
This commit is contained in:
parent
cd959e9966
commit
89c77ca4de
4 changed files with 48 additions and 11 deletions
|
|
@ -147,11 +147,11 @@ module application_fpga (
|
|||
|
||||
reg irq30_cs;
|
||||
reg irq30_we;
|
||||
(* keep *)reg irq30_eoi;
|
||||
reg irq30_eoi;
|
||||
|
||||
reg irq31_cs;
|
||||
reg irq31_we;
|
||||
(* keep *)reg irq31_eoi;
|
||||
reg irq31_eoi;
|
||||
|
||||
reg tk1_cs;
|
||||
reg tk1_we;
|
||||
|
|
@ -373,6 +373,9 @@ module application_fpga (
|
|||
.gpio3(app_gpio3),
|
||||
.gpio4(app_gpio4),
|
||||
|
||||
.access_level_hi (irq31_eoi),
|
||||
.access_level_med(irq30_eoi),
|
||||
|
||||
.cs(tk1_cs),
|
||||
.we(tk1_we),
|
||||
.address(tk1_address),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue