Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
08b337f5
Commit
08b337f5
authored
9 years ago
by
danh-arm
Browse files
Options
Download
Plain Diff
Merge pull request #323 from athoelke/at/fix-aff-inst-overflow
Fix integer extension in mpidr_set_aff_inst()
parents
649591bb
9b89613e
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
v1.2
v1.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/std_svc/psci/psci_common.c
+2
-2
services/std_svc/psci/psci_common.c
with
2 additions
and
2 deletions
+2
-2
services/std_svc/psci/psci_common.c
View file @
08b337f5
...
...
@@ -185,8 +185,8 @@ unsigned long mpidr_set_aff_inst(unsigned long mpidr,
aff_shift
=
get_afflvl_shift
(
aff_lvl
);
/* Clear the existing affinity instance & set the new one*/
mpidr
&=
~
(
MPIDR_AFFLVL_MASK
<<
aff_shift
);
mpidr
|=
aff_inst
<<
aff_shift
;
mpidr
&=
~
(
((
unsigned
long
)
MPIDR_AFFLVL_MASK
)
<<
aff_shift
);
mpidr
|=
((
unsigned
long
)
aff_inst
)
<<
aff_shift
;
return
mpidr
;
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help