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
3934d1a6
Commit
3934d1a6
authored
Jun 16, 2014
by
danh-arm
Browse files
Merge pull request #128 from sandrine-bailleux/sb/make-load_image-ep-optional
Make the entry point argument optional in load_image()
parents
2966dc2c
63db7ba2
Changes
1
Show whitespace changes
Inline
Side-by-side
common/bl_common.c
View file @
3934d1a6
...
...
@@ -175,7 +175,9 @@ unsigned long image_size(const char *image_name)
* given a name, extents of free memory & whether the image should be loaded at
* the bottom or top of the free memory. It updates the memory layout if the
* load is successful. It also updates the image information and the entry point
* information in the params passed
* information in the params passed. The caller might pass a NULL pointer for
* the entry point if it is not interested in this information, e.g. because
* the image just needs to be loaded in memory but won't ever be executed.
******************************************************************************/
int
load_image
(
meminfo_t
*
mem_layout
,
const
char
*
image_name
,
...
...
@@ -399,6 +401,7 @@ int load_image(meminfo_t *mem_layout,
image_data
->
image_base
=
image_base
;
image_data
->
image_size
=
image_size
;
if
(
entry_point_info
!=
NULL
)
entry_point_info
->
pc
=
image_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