mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-10-28 21:28:53 -04:00
- Add per app flash storage
- Adds four data areas. An app can allocate an area. Once allocated
the area is tied to the CDI of the app and can only be
read/written/deallocated by the same app.
- Add two pre loaded app slots to flash
- Load an app from the first slot at boot. The app digest must match a
specific digest specified in firmware.
- Optionally load an app from the second slot
- Add a resetinfo area in FW_RAM which is used to signal an app's intent
of resetting the system and, optionally, pass data to firmware or the
next app in a bootchain.
Co-authored-by: Jonas Thörnblad <jonas@tillitis.se>
Co-authored-by: Mikael Ågren <mikael@tillitis.se>
Co-authored-by: Daniel Jobson <jobson@tillitis.se>
23 lines
556 B
C
23 lines
556 B
C
// Copyright (C) 2025 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#ifndef TKEY_SYSCALL_NUM_H
|
|
#define TKEY_SYSCALL_NUM_H
|
|
|
|
enum syscall_num {
|
|
TK1_SYSCALL_RESET = 1,
|
|
TK1_SYSCALL_ALLOC_AREA = 2,
|
|
TK1_SYSCALL_DEALLOC_AREA = 3,
|
|
TK1_SYSCALL_WRITE_DATA = 4,
|
|
TK1_SYSCALL_READ_DATA = 5,
|
|
TK1_SYSCALL_ERASE_DATA = 6,
|
|
TK1_SYSCALL_GET_VIDPID = 7,
|
|
TK1_SYSCALL_PRELOAD_STORE = 8,
|
|
TK1_SYSCALL_PRELOAD_STORE_FIN = 9,
|
|
TK1_SYSCALL_PRELOAD_DELETE = 10,
|
|
TK1_SYSCALL_PRELOAD_GET_DIGSIG = 11,
|
|
TK1_SYSCALL_REG_MGMT = 12,
|
|
TK1_SYSCALL_STATUS = 13,
|
|
};
|
|
|
|
#endif
|