Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
4d9a3758
Commit
4d9a3758
authored
5 years ago
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "TF-A: Fix BL2 bug in dynamic configuration initialisation" into integration
parents
f63e9f4c
5ddcbdd8
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/arm/common/arm_dyn_cfg.c
+8
-3
plat/arm/common/arm_dyn_cfg.c
with
8 additions
and
3 deletions
+8
-3
plat/arm/common/arm_dyn_cfg.c
View file @
4d9a3758
...
@@ -243,7 +243,8 @@ void arm_bl2_dyn_cfg_init(void)
...
@@ -243,7 +243,8 @@ void arm_bl2_dyn_cfg_init(void)
#ifdef BL31_BASE
#ifdef BL31_BASE
/* Ensure the configs don't overlap with BL31 */
/* Ensure the configs don't overlap with BL31 */
if
((
image_base
>
BL31_BASE
)
||
((
image_base
+
image_size
)
>
BL31_BASE
))
if
((
image_base
>=
BL31_BASE
)
&&
(
image_base
<=
BL31_LIMIT
))
continue
;
continue
;
#endif
#endif
/* Ensure the configs are loaded in a valid address */
/* Ensure the configs are loaded in a valid address */
...
@@ -254,7 +255,8 @@ void arm_bl2_dyn_cfg_init(void)
...
@@ -254,7 +255,8 @@ void arm_bl2_dyn_cfg_init(void)
* If BL32 is present, ensure that the configs don't
* If BL32 is present, ensure that the configs don't
* overlap with it.
* overlap with it.
*/
*/
if
(
image_base
>=
BL32_BASE
&&
image_base
<=
BL32_LIMIT
)
if
((
image_base
>=
BL32_BASE
)
&&
(
image_base
<=
BL32_LIMIT
))
continue
;
continue
;
#endif
#endif
}
}
...
@@ -263,7 +265,10 @@ void arm_bl2_dyn_cfg_init(void)
...
@@ -263,7 +265,10 @@ void arm_bl2_dyn_cfg_init(void)
cfg_mem_params
->
image_info
.
image_base
=
(
uintptr_t
)
image_base
;
cfg_mem_params
->
image_info
.
image_base
=
(
uintptr_t
)
image_base
;
cfg_mem_params
->
image_info
.
image_max_size
=
image_size
;
cfg_mem_params
->
image_info
.
image_max_size
=
image_size
;
/* Remove the IMAGE_ATTRIB_SKIP_LOADING attribute from HW_CONFIG node */
/*
* Remove the IMAGE_ATTRIB_SKIP_LOADING attribute from
* HW_CONFIG or FW_CONFIG nodes
*/
cfg_mem_params
->
image_info
.
h
.
attr
&=
~
IMAGE_ATTRIB_SKIP_LOADING
;
cfg_mem_params
->
image_info
.
h
.
attr
&=
~
IMAGE_ATTRIB_SKIP_LOADING
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help