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
fc5961b3
Commit
fc5961b3
authored
Sep 09, 2020
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
Sep 09, 2020
Browse files
Merge "Fix: fixing coverity issue for SPM Core." into integration
parents
ed39d5e3
f7fb0bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/std_svc/spmd/spmd_main.c
View file @
fc5961b3
...
@@ -46,7 +46,14 @@ static entry_point_info_t *spmc_ep_info;
...
@@ -46,7 +46,14 @@ static entry_point_info_t *spmc_ep_info;
******************************************************************************/
******************************************************************************/
spmd_spm_core_context_t
*
spmd_get_context_by_mpidr
(
uint64_t
mpidr
)
spmd_spm_core_context_t
*
spmd_get_context_by_mpidr
(
uint64_t
mpidr
)
{
{
return
&
spm_core_context
[
plat_core_pos_by_mpidr
(
mpidr
)];
int
core_idx
=
plat_core_pos_by_mpidr
(
mpidr
);
if
(
core_idx
<
0
)
{
ERROR
(
"Invalid mpidr: %llx, returned ID: %d
\n
"
,
mpidr
,
core_idx
);
panic
();
}
return
&
spm_core_context
[
core_idx
];
}
}
/*******************************************************************************
/*******************************************************************************
...
...
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