File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#define CMSIS_device_header <cmsis.h>
20
20
21
+ #ifndef MBED_CONF_TZ_PROCESS_STACK_SIZE
22
+ #define MBED_CONF_TZ_PROCESS_STACK_SIZE 512
23
+ #endif
24
+ #ifndef MBED_CONF_TZ_PROCESS_STACK_SLOTS
25
+ #define MBED_CONF_TZ_PROCESS_STACK_SLOTS 8
26
+ #endif
27
+
28
+ #define TZ_PROCESS_STACK_SLOTS MBED_CONF_TZ_PROCESS_STACK_SLOTS
29
+ #define TZ_PROCESS_STACK_SIZE MBED_CONF_TZ_PROCESS_STACK_SIZE
30
+
21
31
#endif
22
32
23
33
Original file line number Diff line number Diff line change 31
31
#include CMSIS_device_header
32
32
#include "tz_context.h"
33
33
34
- #ifndef MBED_CONF_TZ_PROCESS_STACK_SLOTS
35
- #define MBED_CONF_TZ_PROCESS_STACK_SLOTS 8
36
- #endif
37
-
38
- #ifndef MBED_CONF_TZ_PROCESS_STACK_SIZE
39
- #define MBED_CONF_TZ_PROCESS_STACK_SIZE 512
40
- #endif
41
-
42
34
/// Number of process slots (threads may call secure library code)
43
- #define TZ_PROCESS_STACK_SLOTS MBED_CONF_TZ_PROCESS_STACK_SLOTS
35
+ #ifndef TZ_PROCESS_STACK_SLOTS
36
+ #define TZ_PROCESS_STACK_SLOTS 8U
37
+ #endif
44
38
45
39
/// Stack size of the secure library code
46
- #define TZ_PROCESS_STACK_SIZE MBED_CONF_TZ_PROCESS_STACK_SIZE
40
+ #ifndef TZ_PROCESS_STACK_SIZE
41
+ #define TZ_PROCESS_STACK_SIZE 256U
42
+ #endif
47
43
48
44
typedef struct {
49
45
uint32_t sp_top ; // stack space top
You can’t perform that action at this time.
0 commit comments