mirror of https://github.com/ARMmbed/mbed-os.git
Trustzone stack requirement for Mbed-OS is 512 bytes
Added config parameter for TZ stack size and update code to add correct header file.pull/6483/head
parent
ae2e2b942b
commit
4043d95396
|
@ -0,0 +1,24 @@
|
|||
/* mbed Microcontroller Library
|
||||
* Copyright (c) 2018 ARM Limited
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
#define CMSIS_device_header <cmsis.h>
|
||||
#include "mbed_rtx_conf.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -57,4 +57,14 @@
|
|||
#define OS_IDLE_THREAD_TZ_MOD_ID 1
|
||||
#define OS_TIMER_THREAD_TZ_MOD_ID 1
|
||||
|
||||
#ifndef MBED_CONF_TZ_PROCESS_STACK_SIZE
|
||||
#define MBED_CONF_TZ_PROCESS_STACK_SIZE 512
|
||||
#endif
|
||||
#ifndef MBED_CONF_TZ_PROCESS_STACK_SLOTS
|
||||
#define MBED_CONF_TZ_PROCESS_STACK_SLOTS 8
|
||||
#endif
|
||||
|
||||
#define TZ_PROCESS_STACK_SLOTS MBED_CONF_TZ_PROCESS_STACK_SLOTS
|
||||
#define TZ_PROCESS_STACK_SIZE MBED_CONF_TZ_PROCESS_STACK_SIZE
|
||||
|
||||
#endif /* MBED_RTX_CONF_H */
|
||||
|
|
Loading…
Reference in New Issue