TF-M Reference Manual
1.2.0
TrustedFirmware-M
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
utilities.c
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-2020, Arm Limited. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*
6
*/
7
#include <inttypes.h>
8
#include "
utilities.h
"
9
#include "tfm_hal_platform.h"
10
11
void
tfm_core_panic
(
void
)
12
{
13
/*
14
* FixMe: In the first stage, the SPM will restart the entire system when a
15
* programmer error is detected in either the SPE or NSPE.
16
* In the next stage, the specified error codes are also sent to any NSPE
17
* management firmware. The NSPE management firmware can then decide to pass
18
* those error codes back to the calling task or to use its own
19
* functionality for terminating an execution context.
20
*/
21
tfm_hal_system_reset();
22
}
23
24
bool
tfm_is_one_bit_set
(uint32_t n)
25
{
26
return
((n && !(n & (n-1))) ?
true
:
false
);
27
}
utilities.h
tfm_core_panic
void tfm_core_panic(void)
Definition:
utilities.c:11
tfm_is_one_bit_set
bool tfm_is_one_bit_set(uint32_t n)
Definition:
utilities.c:24
secure_fw
spm
common
utilities.c
Generated on Thu Feb 18 2021 13:29:11 for TF-M Reference Manual by
1.8.6