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
f7c5f307
Commit
f7c5f307
authored
Apr 11, 2018
by
Jiafei Pan
Browse files
layerscape: fix integer handling issues
Assert before actually using. Signed-off-by:
Jiafei Pan
<
Jiafei.Pan@nxp.com
>
parent
b47f941d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/layerscape/board/ls1043/ls1043_psci.c
View file @
f7c5f307
...
...
@@ -94,10 +94,10 @@ static void __dead2 ls1043_system_reset(void)
static
int
ls1043_pwr_domain_on
(
u_register_t
mpidr
)
{
int
core_pos
=
plat_core_pos_by_mpidr
(
mpidr
);
uint32_t
core_mask
=
1
<<
core_pos
;
uint32_t
brr
;
uint32_t
core_mask
,
brr
;
assert
(
core_pos
>=
0
&&
core_pos
<
PLATFORM_CORE_COUNT
);
core_mask
=
1
<<
core_pos
;
/* set warm boot entry */
mmio_write_32
(
LS_SCFG_BASE
+
LS_SCFG_SCRATCHRW0_OFFSET
,
...
...
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