Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
0ef858bd
Unverified
Commit
0ef858bd
authored
May 03, 2018
by
danh-arm
Committed by
GitHub
May 03, 2018
Browse files
Merge pull request #1370 from antonio-nino-diaz-arm/an/fix-parange
xlat: Have all values of PARange for 8.x architectures
parents
df7f2033
d3c4487c
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/xlat_tables/aarch64/xlat_tables.c
View file @
0ef858bd
/*
/*
* Copyright (c) 2014-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -57,13 +57,13 @@ static unsigned long long calc_physical_addr_size_bits(
...
@@ -57,13 +57,13 @@ static unsigned long long calc_physical_addr_size_bits(
}
}
#if ENABLE_ASSERTIONS
#if ENABLE_ASSERTIONS
/* Physical Address ranges supported in the AArch64 Memory Model */
/*
* Physical Address ranges supported in the AArch64 Memory Model. Value 0b110 is
* supported in ARMv8.2 onwards.
*/
static
const
unsigned
int
pa_range_bits_arr
[]
=
{
static
const
unsigned
int
pa_range_bits_arr
[]
=
{
PARANGE_0000
,
PARANGE_0001
,
PARANGE_0010
,
PARANGE_0011
,
PARANGE_0100
,
PARANGE_0000
,
PARANGE_0001
,
PARANGE_0010
,
PARANGE_0011
,
PARANGE_0100
,
PARANGE_0101
,
PARANGE_0101
,
PARANGE_0110
#if ARM_ARCH_AT_LEAST(8, 2)
PARANGE_0110
,
#endif
};
};
static
unsigned
long
long
get_max_supported_pa
(
void
)
static
unsigned
long
long
get_max_supported_pa
(
void
)
...
...
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c
View file @
0ef858bd
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -45,13 +45,13 @@ unsigned long long tcr_physical_addr_size_bits(unsigned long long max_addr)
...
@@ -45,13 +45,13 @@ unsigned long long tcr_physical_addr_size_bits(unsigned long long max_addr)
}
}
#if ENABLE_ASSERTIONS
#if ENABLE_ASSERTIONS
/* Physical Address ranges supported in the AArch64 Memory Model */
/*
* Physical Address ranges supported in the AArch64 Memory Model. Value 0b110 is
* supported in ARMv8.2 onwards.
*/
static
const
unsigned
int
pa_range_bits_arr
[]
=
{
static
const
unsigned
int
pa_range_bits_arr
[]
=
{
PARANGE_0000
,
PARANGE_0001
,
PARANGE_0010
,
PARANGE_0011
,
PARANGE_0100
,
PARANGE_0000
,
PARANGE_0001
,
PARANGE_0010
,
PARANGE_0011
,
PARANGE_0100
,
PARANGE_0101
,
PARANGE_0101
,
PARANGE_0110
#if ARM_ARCH_AT_LEAST(8, 2)
PARANGE_0110
,
#endif
};
};
unsigned
long
long
xlat_arch_get_max_supported_pa
(
void
)
unsigned
long
long
xlat_arch_get_max_supported_pa
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment