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
499f192c
Commit
499f192c
authored
Jul 30, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jul 30, 2020
Browse files
Merge "fconf: spm: minor bug fix" into integration
parents
f0b1864f
bef0192a
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/arm/common/fconf/arm_fconf_sp.c
View file @
499f192c
...
@@ -45,6 +45,11 @@ int fconf_populate_arm_sp(uintptr_t config)
...
@@ -45,6 +45,11 @@ int fconf_populate_arm_sp(uintptr_t config)
}
}
fdt_for_each_subnode
(
sp_node
,
dtb
,
node
)
{
fdt_for_each_subnode
(
sp_node
,
dtb
,
node
)
{
if
(
index
==
MAX_SP_IDS
)
{
ERROR
(
"FCONF: Reached max number of SPs
\n
"
);
return
-
1
;
}
err
=
fdt_read_uint32_array
(
dtb
,
sp_node
,
"uuid"
,
4
,
err
=
fdt_read_uint32_array
(
dtb
,
sp_node
,
"uuid"
,
4
,
uuid_helper
.
word
);
uuid_helper
.
word
);
if
(
err
<
0
)
{
if
(
err
<
0
)
{
...
@@ -87,15 +92,10 @@ int fconf_populate_arm_sp(uintptr_t config)
...
@@ -87,15 +92,10 @@ int fconf_populate_arm_sp(uintptr_t config)
policies
[
sp_start_index
+
index
].
check
=
open_fip
;
policies
[
sp_start_index
+
index
].
check
=
open_fip
;
index
++
;
index
++
;
if
(
index
>=
MAX_SP_IDS
)
{
ERROR
(
"FCONF: reached max number of SPs
\n
"
);
return
-
1
;
}
}
}
if
((
sp_node
<
0
)
&&
(
sp_node
!=
-
FDT_ERR_NOTFOUND
))
{
if
((
sp_node
<
0
)
&&
(
sp_node
!=
-
FDT_ERR_NOTFOUND
))
{
ERROR
(
"%
d
: fdt_for_each_subnode(): %d
\n
"
,
__LINE__
,
node
);
ERROR
(
"%
u
: fdt_for_each_subnode(): %d
\n
"
,
__LINE__
,
node
);
return
sp_node
;
return
sp_node
;
}
}
...
...
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