tillitis-key/hw/application_fpga/fw
Michael Cardell Widerkrantz 56e34b3add
fw/testfw: Use fw_ram for firmware stack
This means firmware's stack shouldn't be accessible to programs
running in app_mode.

It also means we don't need to take special care of secure_ctx which
can now be an ordinary stack variable.

Nonetheless we zero out secure_ctx after final use and inline some
assembler to zero out the entire fw_ram after use, just before
switching to app_mode.

Signed-off-by: Daniel Lublin <daniel@lublin.se>
2023-03-14 10:25:02 +01:00
..
testfw fw/testfw: Use fw_ram for firmware stack 2023-03-14 10:25:02 +01:00
tk1 fw/testfw: Use fw_ram for firmware stack 2023-03-14 10:25:02 +01:00
.clang-format Make initial public release 2022-09-19 08:51:11 +02:00
tk1_mem.h Adjust header file to new fw_ram size 2023-03-08 11:26:25 +01:00