Introduce syscalls to change preloaded app

Introduce syscalls:

- TK1_SYSCALL_PRELOAD_STORE
- TK1_SYSCALL_PRELOAD_STORE_FIN
- TK1_SYSCALL_PRELOAD_DELETE
- TK1_SYSCALL_REG_MGMT = 11

Change preload_store_finalize() not to take USS arg. Unused for
preloaded apps.
This commit is contained in:
Michael Cardell Widerkrantz 2025-03-18 14:56:15 +01:00 committed by Mikael Ågren
parent 970668a47b
commit dd147657a4
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
4 changed files with 28 additions and 7 deletions

View file

@ -14,8 +14,7 @@ bool preload_check_valid_app(struct partition_table *part_table,
int preload_load(struct partition_table *part_table, uint8_t from_slot);
int preload_store(struct partition_table *part_table, uint32_t offset,
uint8_t *data, size_t size, uint8_t to_slot);
int preload_store_finalize(struct partition_table *part_table, bool use_uss,
uint8_t *uss, size_t app_size, uint8_t to_slot);
int preload_store_finalize(struct partition_table *part_table, size_t app_size, uint8_t to_slot);
int preload_delete(struct partition_table *part_table, uint8_t slot);
#endif