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
ffc299f6
Commit
ffc299f6
authored
Apr 24, 2017
by
davidcunado-arm
Committed by
GitHub
Apr 24, 2017
Browse files
Merge pull request #911 from danh-arm/dh/refactor-bl2-image-load
Minor refactor of BL2 image load v2
parents
0c7c4411
c2a9ee63
Changes
2
Hide whitespace changes
Inline
Side-by-side
bl2/bl2_image_load_v2.c
View file @
ffc299f6
...
...
@@ -109,6 +109,10 @@ entry_point_info_t *bl2_load_images(void)
assert
(
bl2_to_next_bl_params
->
head
);
assert
(
bl2_to_next_bl_params
->
h
.
type
==
PARAM_BL_PARAMS
);
assert
(
bl2_to_next_bl_params
->
h
.
version
>=
VERSION_2
);
assert
(
bl2_to_next_bl_params
->
head
->
ep_info
);
/* Populate arg0 for the next BL image */
bl2_to_next_bl_params
->
head
->
ep_info
->
args
.
arg0
=
(
u_register_t
)
bl2_to_next_bl_params
;
/* Flush the parameters to be passed to next image */
plat_flush_next_bl_params
();
...
...
common/desc_image_load.c
View file @
ffc299f6
...
...
@@ -47,8 +47,11 @@ static bl_params_t next_bl_params;
******************************************************************************/
void
flush_bl_params_desc
(
void
)
{
flush_dcache_range
((
u
nsigned
long
)
bl_mem_params_desc_ptr
,
flush_dcache_range
((
u
intptr_t
)
bl_mem_params_desc_ptr
,
sizeof
(
*
bl_mem_params_desc_ptr
)
*
bl_mem_params_desc_num
);
flush_dcache_range
((
uintptr_t
)
&
next_bl_params
,
sizeof
(
next_bl_params
));
}
/*******************************************************************************
...
...
@@ -209,12 +212,5 @@ bl_params_t *get_next_bl_params_from_mem_params_desc(void)
/* Invalid image is expected to terminate the loop */
assert
(
img_id
==
INVALID_IMAGE_ID
);
/* Populate arg0 for the next BL image */
next_bl_params
.
head
->
ep_info
->
args
.
arg0
=
(
unsigned
long
)
&
next_bl_params
;
/* Flush the parameters to be passed to the next BL image */
flush_dcache_range
((
unsigned
long
)
&
next_bl_params
,
sizeof
(
next_bl_params
));
return
&
next_bl_params
;
}
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