tillitis-key/hw/application_fpga/fw/testfw
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
..
main.c fw/testfw: Use fw_ram for firmware stack 2023-03-14 10:25:02 +01:00
Makefile Add github action with basic CI that builds 2023-02-03 14:28:56 +01:00