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
a74e3a16
Commit
a74e3a16
authored
Oct 25, 2019
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Oct 25, 2019
Browse files
Merge "plat/arm: use Aff3 bits also to validate mpidr" into integration
parents
a04808c1
b30646a8
Changes
1
Show whitespace changes
Inline
Side-by-side
plat/arm/common/arm_topology.c
View file @
a74e3a16
/*
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
9
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -24,7 +24,8 @@ int arm_check_mpidr(u_register_t mpidr)
...
@@ -24,7 +24,8 @@ int arm_check_mpidr(u_register_t mpidr)
valid_mask
=
~
(
MPIDR_AFFLVL_MASK
|
valid_mask
=
~
(
MPIDR_AFFLVL_MASK
|
(
MPIDR_AFFLVL_MASK
<<
MPIDR_AFF1_SHIFT
)
|
(
MPIDR_AFFLVL_MASK
<<
MPIDR_AFF1_SHIFT
)
|
(
MPIDR_AFFLVL_MASK
<<
MPIDR_AFF2_SHIFT
));
(
MPIDR_AFFLVL_MASK
<<
MPIDR_AFF2_SHIFT
)
|
(
MPIDR_AFFLVL_MASK
<<
MPIDR_AFF3_SHIFT
));
cluster_id
=
(
mpidr
>>
MPIDR_AFF2_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
cluster_id
=
(
mpidr
>>
MPIDR_AFF2_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
cpu_id
=
(
mpidr
>>
MPIDR_AFF1_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
cpu_id
=
(
mpidr
>>
MPIDR_AFF1_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
pe_id
=
(
mpidr
>>
MPIDR_AFF0_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
pe_id
=
(
mpidr
>>
MPIDR_AFF0_SHIFT
)
&
MPIDR_AFFLVL_MASK
;
...
...
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