Aaron Durbin (email@example.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14213
commit 040b3369ba7927f16c4f57d960e551b7ba92f1e9 Author: Aaron Durbin firstname.lastname@example.org Date: Thu Mar 31 13:36:33 2016 -0500
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 email@example.com --- src/arch/x86/postcar_loader.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c index 580cc45..eba90d4 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); }