[coreboot-gerrit] New patch to review for coreboot: drivers/intel/fsp2_0: signal that FSP components are loaded
Aaron Durbin (adurbin@chromium.org)
gerrit at coreboot.org
Thu Mar 31 21:02:42 CEST 2016
Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14211
-gerrit
commit c4c122713bfccd2b425e5fd0d0b69fa5e8e01ad3
Author: Aaron Durbin <adurbin at chromium.org>
Date: Thu Mar 31 12:48:30 2016 -0500
drivers/intel/fsp2_0: signal that FSP components are loaded
In order for the platform code to handle situations where
special actions are required after a piece of code is loaded
use arch_segment_loaded() to signal to the platform code
that the compoment is fully loaded into memory.
Change-Id: I119cfc9913f15eb4968fe5bf6a56589e2c53f2d1
Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
src/drivers/intel/fsp2_0/util.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c
index a234a7c..c4fe8dc 100644
--- a/src/drivers/intel/fsp2_0/util.c
+++ b/src/drivers/intel/fsp2_0/util.c
@@ -17,6 +17,7 @@
#include <fsp/util.h>
#include <lib.h>
#include <memrange.h>
+#include <program_loading.h>
#include <string.h>
static bool looks_like_fsp_header(const uint8_t *raw_hdr)
@@ -130,5 +131,8 @@ enum cb_err fsp_load_binary(struct fsp_header *hdr,
if (rdev_readat(&file_data, (void *)hdr->image_base, 0, hdr->image_size) < 0)
return CB_ERR;
+ /* Signal that FSP component has been loaded. */
+ arch_segment_loaded(hdr->image_base, hdr->image_size, SEG_FINAL);
+
return CB_SUCCESS;
}
More information about the coreboot-gerrit
mailing list