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
f918bca3
Unverified
Commit
f918bca3
authored
Mar 05, 2018
by
davidcunado-arm
Committed by
GitHub
Mar 05, 2018
Browse files
Merge pull request #1300 from davidcunado-arm/ak/fix_args
Dynamic cfg: Do not populate args if already initialized
parents
eb4ff4c1
1cc99de8
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/desc_image_load.c
View file @
f918bca3
...
...
@@ -239,14 +239,23 @@ void populate_next_bl_params_config(bl_params_t *bl2_to_next_bl_params)
/*
* Pass hw and tb_fw config addresses to next images. NOTE - for
* EL3 runtime images (BL31 for AArch64 and BL32 for AArch32),
* arg0 is already used by generic code.
* arg0 is already used by generic code. Take care of not
* overwriting the previous initialisations.
*/
if
(
params_node
==
bl2_to_next_bl_params
->
head
)
{
params_node
->
ep_info
->
args
.
arg1
=
fw_config_base
;
params_node
->
ep_info
->
args
.
arg2
=
hw_config_base
;
if
(
params_node
->
ep_info
->
args
.
arg1
==
0
)
params_node
->
ep_info
->
args
.
arg1
=
fw_config_base
;
if
(
params_node
->
ep_info
->
args
.
arg2
==
0
)
params_node
->
ep_info
->
args
.
arg2
=
hw_config_base
;
}
else
{
params_node
->
ep_info
->
args
.
arg0
=
fw_config_base
;
params_node
->
ep_info
->
args
.
arg1
=
hw_config_base
;
if
(
params_node
->
ep_info
->
args
.
arg0
==
0
)
params_node
->
ep_info
->
args
.
arg0
=
fw_config_base
;
if
(
params_node
->
ep_info
->
args
.
arg1
==
0
)
params_node
->
ep_info
->
args
.
arg1
=
hw_config_base
;
}
}
}
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