mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-04 02:46:49 -04:00

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);
24 lines
588 B
C
24 lines
588 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,
|
|
TK1_SYSCALL_GET_APP_DATA = 14,
|
|
};
|
|
|
|
#endif
|