[coreboot-gerrit] Patch set updated for coreboot: lib/rmodule: export parameters in struct rmod_stage_load

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Sat Mar 19 03:27:41 CET 2016


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14139

-gerrit

commit 3e4e099b0859b9f298d888e27ce1fc8685231926
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Thu Mar 17 23:13:34 2016 -0500

    lib/rmodule: export parameters in struct rmod_stage_load
    
    In order for a caller to utilize an rmodule's parameters section
    after calling rmodule_stage_load() export the rmodule's parameter
    pointer in struct rmod_stage_load.
    
    Change-Id: I9cd51652cf8cdb3fae773256989851638aa1a60f
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/include/rmodule.h | 1 +
 src/lib/rmodule.c     | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/include/rmodule.h b/src/include/rmodule.h
index a2612d1..c0c062c 100644
--- a/src/include/rmodule.h
+++ b/src/include/rmodule.h
@@ -55,6 +55,7 @@ struct prog;
 struct rmod_stage_load {
 	uint32_t cbmem_id;
 	struct prog *prog;
+	void *params;
 };
 
 /* Both of the following functions return 0 on success, -1 on error. */
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c
index 585fb5f..9825e6a 100644
--- a/src/lib/rmodule.c
+++ b/src/lib/rmodule.c
@@ -296,5 +296,8 @@ int rmodule_stage_load(struct rmod_stage_load *rsl)
 			rmodule_memory_size(&rmod_stage));
 	prog_set_entry(rsl->prog, rmodule_entry(&rmod_stage), NULL);
 
+	/* Allow caller to pick up parameters, if available. */
+	rsl->params = rmodule_parameters(&rmod_stage);
+
 	return 0;
 }



More information about the coreboot-gerrit mailing list