[coreboot-gerrit] New patch to review for coreboot: fmap: publish find_fmap_directory()
Patrick Georgi (pgeorgi@google.com)
gerrit at coreboot.org
Thu Jul 9 16:20:03 CEST 2015
Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10866
-gerrit
commit f44af94236ebcf5bf8d41bb4f6f1c2b38bc3863f
Author: Patrick Georgi <pgeorgi at chromium.org>
Date: Thu Jul 9 13:34:40 2015 +0200
fmap: publish find_fmap_directory()
The fmap directory can be useful to pass to the payload. For that, we need to
be able to get it.
Change-Id: Ibe0be73bb4fe28afb16d4d215b979eb0be369645
Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
src/include/fmap.h | 3 +++
src/lib/fmap.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/include/fmap.h b/src/include/fmap.h
index bf98e4c..6903139 100644
--- a/src/include/fmap.h
+++ b/src/include/fmap.h
@@ -22,6 +22,9 @@
#include <region.h>
+/* Locate the fmap directory. Return 0 on success, < 0 on error. */
+int find_fmap_directory(struct region_device *fmrd);
+
/* Locate the named area in the fmap and fill in a region device representing
* that area. The region is a sub-region of the readonly boot media. Return
* 0 on success, < 0 on error. */
diff --git a/src/lib/fmap.c b/src/lib/fmap.c
index 4d3f1ca..6bf0760 100644
--- a/src/lib/fmap.c
+++ b/src/lib/fmap.c
@@ -28,7 +28,7 @@
* See http://code.google.com/p/flashmap/ for more information on FMAP.
*/
-static int find_fmap_directory(struct region_device *fmrd)
+int find_fmap_directory(struct region_device *fmrd)
{
const struct region_device *boot;
struct fmap *fmap;
More information about the coreboot-gerrit
mailing list