File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
FEATURE_LWIP/lwip-interface/lwip-sys/arch
nanostack/nanostack-hal-mbed-cmsis-rtos Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,11 @@ static sys_thread_data_t thread_pool[SYS_THREAD_POOL_N];
502
502
* Outputs:
503
503
* sys_thread_t -- Pointer to thread handle.
504
504
*---------------------------------------------------------------------------*/
505
- sys_thread_t sys_thread_new (const char * pcName ,
505
+ #ifndef MBED_TZ_DEFAULT_ACCESS
506
+ #define MBED_TZ_DEFAULT_ACCESS 0
507
+ #endif
508
+
509
+ sys_thread_t sys_thread_new (const char * pcName ,
506
510
void (* thread )(void * arg ),
507
511
void * arg , int stacksize , int priority ) {
508
512
LWIP_DEBUGF (SYS_DEBUG , ("New Thread: %s\n" , pcName ));
@@ -519,6 +523,7 @@ sys_thread_t sys_thread_new(const char *pcName,
519
523
t -> attr .cb_mem = & t -> data ;
520
524
t -> attr .stack_size = stacksize ;
521
525
t -> attr .stack_mem = malloc (stacksize );
526
+ t -> attr .tz_module = MBED_TZ_DEFAULT_ACCESS ;
522
527
if (t -> attr .stack_mem == NULL ) {
523
528
error ("Error allocating the stack memory" );
524
529
}
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ static osEventFlagsId_t event_flag_id;
27
27
28
28
#else
29
29
30
+ #ifndef MBED_TZ_DEFAULT_ACCESS
31
+ #define MBED_TZ_DEFAULT_ACCESS 0
32
+ #endif
33
+
30
34
static void event_loop_thread (void * arg );
31
35
32
36
static uint64_t event_thread_stk [MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_THREAD_STACK_SIZE /8 ];
@@ -38,6 +42,7 @@ static const osThreadAttr_t event_thread_attr = {
38
42
.stack_size = sizeof event_thread_stk ,
39
43
.cb_mem = & event_thread_tcb ,
40
44
.cb_size = sizeof event_thread_tcb ,
45
+ .tz_module = MBED_TZ_DEFAULT_ACCESS ,
41
46
};
42
47
#endif
43
48
You can’t perform that action at this time.
0 commit comments