mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-09 06:13:54 +00:00

Align entire TF-A to use Arm in copyright header. Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
31 lines
782 B
C
31 lines
782 B
C
/*
|
|
* Copyright (c) 2017-2018, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef XLAT_TABLES_ARCH_H
|
|
#define XLAT_TABLES_ARCH_H
|
|
|
|
#ifdef __aarch64__
|
|
#include "aarch64/xlat_tables_aarch64.h"
|
|
#else
|
|
#include "aarch32/xlat_tables_aarch32.h"
|
|
#endif
|
|
|
|
/*
|
|
* Evaluates to 1 if the given physical address space size is a power of 2,
|
|
* or 0 if it's not.
|
|
*/
|
|
#define CHECK_PHY_ADDR_SPACE_SIZE(size) \
|
|
(IS_POWER_OF_TWO(size))
|
|
|
|
/*
|
|
* Compute the number of entries required at the initial lookup level to address
|
|
* the whole virtual address space.
|
|
*/
|
|
#define GET_NUM_BASE_LEVEL_ENTRIES(addr_space_size) \
|
|
((addr_space_size) >> \
|
|
XLAT_ADDR_SHIFT(GET_XLAT_TABLE_LEVEL_BASE(addr_space_size)))
|
|
|
|
#endif /* XLAT_TABLES_ARCH_H */
|