fw: Add syscall TK1_SYSCALL_GET_APP_DATA

Add a new syscall to enable an app to get the data left for it by the
previous app in chain.

- Change testloadapp to leave some data for the next app to read.
- Call system call with:

  uint8_t next_app_data[RESET_DATA_SIZE];

  syscall(TK1_SYSCALL_GET_APP_DATA, (uint32_t)next_app_data, 0, 0);
This commit is contained in:
Michael Cardell Widerkrantz 2025-05-13 10:58:48 +02:00 committed by Mikael Ågren
parent 14e4cd09c9
commit e935195846
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
8 changed files with 51 additions and 11 deletions

View file

@ -18,6 +18,7 @@ enum syscall_num {
TK1_SYSCALL_PRELOAD_GET_DIGSIG = 11,
TK1_SYSCALL_REG_MGMT = 12,
TK1_SYSCALL_STATUS = 13,
TK1_SYSCALL_GET_APP_DATA = 14,
};
#endif