Add API for syscall

Add a register to store an address to a syscall function defined in
firmware. Set the reset value to an illegal address, to make sure a call
to an unset address will halt the CPU.

Co-authored-by: Mikael Ågren <mikael@tillitis.se>
This commit is contained in:
Daniel Jobson 2024-11-07 13:10:10 +01:00
parent 07dec8b8dc
commit 31708a39d3
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
2 changed files with 25 additions and 0 deletions

View file

@ -125,6 +125,7 @@
#define TK1_MMIO_TK1_APP_SIZE 0xff000034
#define TK1_MMIO_TK1_BLAKE2S 0xff000040
#define TK1_MMIO_TK1_SYSCALL 0xff000048
#define TK1_MMIO_TK1_CDI_FIRST 0xff000080
#define TK1_MMIO_TK1_CDI_LAST 0xff00009c