summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-03-31 13:36:33 -0500
committerAaron Durbin <adurbin@chromium.org>2016-04-02 03:56:08 +0200
commitdd95e006e3c972e5e9c5508bc5fc165a9e6296db (patch)
tree85ed46fb1b7fc2d6eb7c9eab93f5d032f8aececd /src/arch/x86
parent5be350b9fbaa9c49b25a482199bdd3d8fadc91e3 (diff)
downloadcoreboot-dd95e006e3c972e5e9c5508bc5fc165a9e6296db.tar.xz
arch/x86: notify the system when the postcar parameter was updated
While rmodule_load() calls arch_segment_loaded() when it's done loading any pieces of code which further modify it, like changing parameters within the program itself, need to notify the rest of the system. Change-Id: Ia3374b58488120ba6279592a77d7f9c6217f1215 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14213 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/postcar_loader.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index 580cc4585c..eba90d4207 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -111,5 +111,12 @@ void run_postcar_phase(struct postcar_frame *pcf)
*(uintptr_t *)rsl.params = pcf->stack;
+ /*
+ * Signal to rest of system that another update was made to the
+ * postcar program prior to running it.
+ */
+ arch_segment_loaded((uintptr_t)rsl.params, sizeof(uintptr_t),
+ SEG_FINAL);
+
prog_run(&prog);
}