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
1ba168cf
Commit
1ba168cf
authored
Jun 30, 2020
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Jun 30, 2020
Browse files
Merge "plat/arm: Add assert for the valid address of dtb information" into integration
parents
b2b0e28a
1d60052e
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/arm/common/arm_bl2_setup.c
View file @
1ba168cf
...
...
@@ -62,15 +62,13 @@ void arm_bl2_early_platform_setup(uintptr_t fw_config,
bl2_tzram_layout
=
*
mem_layout
;
/* Fill the properties struct with the info from the config dtb */
if
(
fw_config
!=
0U
)
{
fconf_populate
(
"FW_CONFIG"
,
fw_config
);
}
fconf_populate
(
"FW_CONFIG"
,
fw_config
);
/* TB_FW_CONFIG was also loaded by BL1 */
tb_fw_config_info
=
FCONF_GET_PROPERTY
(
dyn_cfg
,
dtb
,
TB_FW_CONFIG_ID
);
if
(
tb_fw_config_info
!=
NULL
)
{
fconf_populate
(
"TB_FW"
,
tb_fw_config_info
->
config_addr
);
}
assert
(
tb_fw_config_info
!=
NULL
)
;
fconf_populate
(
"TB_FW"
,
tb_fw_config_info
->
config_addr
);
/* Initialise the IO layer and register platform IO devices */
plat_arm_io_setup
();
...
...
plat/arm/common/arm_dyn_cfg.c
View file @
1ba168cf
...
...
@@ -93,6 +93,8 @@ void arm_bl1_set_mbedtls_heap(void)
*/
tb_fw_config_info
=
FCONF_GET_PROPERTY
(
dyn_cfg
,
dtb
,
TB_FW_CONFIG_ID
);
assert
(
tb_fw_config_info
!=
NULL
);
tb_fw_cfg_dtb
=
tb_fw_config_info
->
config_addr
;
if
((
tb_fw_cfg_dtb
!=
0UL
)
&&
(
mbedtls_heap_addr
!=
NULL
))
{
...
...
@@ -134,6 +136,8 @@ void arm_bl1_set_bl2_hash(image_desc_t *image_desc)
const
struct
dyn_cfg_dtb_info_t
*
tb_fw_config_info
;
tb_fw_config_info
=
FCONF_GET_PROPERTY
(
dyn_cfg
,
dtb
,
TB_FW_CONFIG_ID
);
assert
(
tb_fw_config_info
!=
NULL
);
tb_fw_cfg_dtb
=
tb_fw_config_info
->
config_addr
;
/*
...
...
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