MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClSession_Internal_AssemblyHeader.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2024 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
18
19#ifndef MCUXCLSESSION_INTERNAL_ASSEMBLYHEADER_H_
20#define MCUXCLSESSION_INTERNAL_ASSEMBLYHEADER_H_
21
22#define MCUXCLSESSION_STATUS_ASM_API_ENTERED ((3822 << 16) | 11847)
23#define MCUXCLSESSION_STATUS_ASM_EXIT_FA ((3822 << 16) | 61680)
24
25#define WORDLEN (4) /* CPU word length */
26#define APICALL_OFFSET (85 - 1) /* Index of apiCall in struct mcuxClSession_Descriptor */
27
28#define FAULTSTATUS_OFFSET (1 - 1) /* Index of faultStatus in struct mcuxClSession_apiCall */
29#define DIBACKUP_OFFSET (5 - 1) /* Index of diBackup in struct mcuxClSession_apiCall */
30#define PREVIOUS_OFFSET (9 - 1) /* Index of previous in struct mcuxClSession_apiCall */
31#define CPUREGISTERBACKUP_OFFSET (13 - 1) /* Index of cpuRegisterBackup in struct mcuxClSession_apiCall */
32
33#define CPUREGISTERBACKUP_NUMBEROF_S_REGISTERS (8) /* Number of S registers to backup */
34#define CPUREGISTERBACKUP_S(s_index) (CPUREGISTERBACKUP_OFFSET + s_index * WORDLEN) /* Index of S register in cpuRegisterBackup */
35#define CPUREGISTERBACKUP_RA (CPUREGISTERBACKUP_OFFSET + CPUREGISTERBACKUP_NUMBEROF_S_REGISTERS * WORDLEN) /* Index of RA register in cpuRegisterBackup */
36#define CPUREGISTERBACKUP_SP (CPUREGISTERBACKUP_OFFSET + (CPUREGISTERBACKUP_NUMBEROF_S_REGISTERS + 1) * WORDLEN) /* Index of SP register in cpuRegisterBackup */
37#define CPUREGISTERBACKUP_UPCSSTATE (CPUREGISTERBACKUP_OFFSET + (CPUREGISTERBACKUP_NUMBEROF_S_REGISTERS + 2) * WORDLEN) /* Index of UPCSSTATE register in cpuRegisterBackup */
38
39
40#endif /* MCUXCLSESSION_INTERNAL_ASSEMBLYHEADER_H_ */