From dd95e006e3c972e5e9c5508bc5fc165a9e6296db Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 31 Mar 2016 13:36:33 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/14213 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) Reviewed-by: Andrey Petrov --- src/arch/x86/postcar_loader.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/arch/x86') 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); } -- cgit v1.2.3