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
08b337f5
Commit
08b337f5
authored
Jun 19, 2015
by
danh-arm
Browse files
Merge pull request #323 from athoelke/at/fix-aff-inst-overflow
Fix integer extension in mpidr_set_aff_inst()
parents
649591bb
9b89613e
Changes
1
Show whitespace changes
Inline
Side-by-side
services/std_svc/psci/psci_common.c
View file @
08b337f5
...
@@ -185,8 +185,8 @@ unsigned long mpidr_set_aff_inst(unsigned long mpidr,
...
@@ -185,8 +185,8 @@ unsigned long mpidr_set_aff_inst(unsigned long mpidr,
aff_shift
=
get_afflvl_shift
(
aff_lvl
);
aff_shift
=
get_afflvl_shift
(
aff_lvl
);
/* Clear the existing affinity instance & set the new one*/
/* Clear the existing affinity instance & set the new one*/
mpidr
&=
~
(
MPIDR_AFFLVL_MASK
<<
aff_shift
);
mpidr
&=
~
(
((
unsigned
long
)
MPIDR_AFFLVL_MASK
)
<<
aff_shift
);
mpidr
|=
aff_inst
<<
aff_shift
;
mpidr
|=
((
unsigned
long
)
aff_inst
)
<<
aff_shift
;
return
mpidr
;
return
mpidr
;
}
}
...
...
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