diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-09-05 22:43:05 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-09-08 03:17:52 +0000 |
commit | d87e4b346943110a6d919aa52444bb420e2755be (patch) | |
tree | 504cf11ac99f37a8eaae4a885583ad08ffbc99d0 /src/lib/rmodule.c | |
parent | 534b23639bd1ee82e752f0a8593e46c1d03d8d2c (diff) |
stage_cache: Add rmodule params in metadata
The change allows to update rmodule parameters after
it has been loaded from stage cache.
Change-Id: Ib825ffe245d447ad3a8246f7dbd52c6e34103a0c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/21385
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/rmodule.c')
-rw-r--r-- | src/lib/rmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c index a3a74ac613..66d5120fee 100644 --- a/src/lib/rmodule.c +++ b/src/lib/rmodule.c @@ -294,10 +294,11 @@ int rmodule_stage_load(struct rmod_stage_load *rsl) prog_set_area(rsl->prog, rmod_stage.location, 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); + prog_set_entry(rsl->prog, rmodule_entry(&rmod_stage), rsl->params); + return 0; } |