summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-03-31 12:48:30 -0500
committerAaron Durbin <adurbin@chromium.org>2016-04-02 03:52:28 +0200
commita33c6d773be39af6939b99efbdbadb8bc32a5729 (patch)
tree27a3fd939cbb4db20897859cf0f45419c3fd3619 /src
parent595688a3d60c7ad0227ec7f72d8f2e73fd8f236e (diff)
downloadcoreboot-a33c6d773be39af6939b99efbdbadb8bc32a5729.tar.xz
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 component is fully loaded into memory. Change-Id: I119cfc9913f15eb4968fe5bf6a56589e2c53f2d1 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14211 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/fsp2_0/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c
index a234a7c12a..c4fe8dc933 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;
}