diff options
author | Aaron Durbin <adurbin@chromium.org> | 2015-03-24 15:50:45 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2015-03-24 22:48:51 +0100 |
commit | 12d45b2f8a6c10d68ab940c24b7f68d5a6fbb378 (patch) | |
tree | 093f3bd7bdff2657d1811dc5aed904943880c8d2 /src/include | |
parent | d0f9f74223715aaebe897a6f773d3383d548fd12 (diff) |
cbfs: expose init_backing_media()
I broke cbfs loading with commit 358901. As multiple
functions are being reused one needs to ensure there is
always a cbfs media object allocated on the stack and
initialized. Ya for no common writable globals.
TEST=Ran qemu-armv7. CBFS loading works again.
Change-Id: Ibd047af7dcd8575e6203651471079fc2042da282
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8973
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: Aaron Durbin <adurbin@google.com>
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cbfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h index 9aa2c969ba..2db3c94f90 100644 --- a/src/include/cbfs.h +++ b/src/include/cbfs.h @@ -52,6 +52,7 @@ #include <cbfs_core.h> +int init_backing_media(struct cbfs_media **media, struct cbfs_media *backing); void *cbfs_load_optionrom(struct cbfs_media *media, uint16_t vendor, uint16_t device, void * dest); void *cbfs_load_stage(struct cbfs_media *media, const char *name); |