mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Resolve TZC400 build issue when DEBUG=1 and ENABLE_ASSERTIONS=0
Previously the definition of `_tzc_read_peripheral_id()` was wrapped in ENABLE_ASSERTIONS build flag. This causes build issue for TZC400 driver when DEBUG=1 and ENABLE_ASSERTIONS=0. This patch fixes the same by moving the definitions outside the ENABLE_ASSERTIONS build flag. Change-Id: Ic1cad69f02ce65ac34aefd39eaa96d5781043152 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
This commit is contained in:
parent
5ff5a6d9c3
commit
806d9ad171
1 changed files with 1 additions and 2 deletions
|
@ -169,8 +169,6 @@
|
||||||
nsaid_permissions); \
|
nsaid_permissions); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_ASSERTIONS
|
|
||||||
|
|
||||||
static inline unsigned int _tzc_read_peripheral_id(uintptr_t base)
|
static inline unsigned int _tzc_read_peripheral_id(uintptr_t base)
|
||||||
{
|
{
|
||||||
unsigned int id;
|
unsigned int id;
|
||||||
|
@ -182,6 +180,7 @@ static inline unsigned int _tzc_read_peripheral_id(uintptr_t base)
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLE_ASSERTIONS
|
||||||
#ifdef AARCH32
|
#ifdef AARCH32
|
||||||
static inline unsigned long long _tzc_get_max_top_addr(int addr_width)
|
static inline unsigned long long _tzc_get_max_top_addr(int addr_width)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue