summaryrefslogtreecommitdiff
path: root/src/lib/loaders
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-27 21:17:22 -0500
committerAaron Durbin <adurbin@google.com>2015-04-03 14:53:35 +0200
commit460703bbb4f1a51b9ecd19ac78ec62c97502a4a2 (patch)
tree050712ccf718a467ee9c76b01b21dfafcb05f8a7 /src/lib/loaders
parentce9efe061a23bc3e3d2a4c17cf29692ce6f9eb53 (diff)
rmodule: use struct prog while loading rmodules
The rmod_stage_load structure contained the same fields as struct prog. In order to more closely integrate with the rest of program loading use struct prog. Change-Id: Ib7f45d0b3573e6d518864deacc4002802b11aa9c Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9143 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/lib/loaders')
-rw-r--r--src/lib/loaders/cbfs_ramstage_loader.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/loaders/cbfs_ramstage_loader.c b/src/lib/loaders/cbfs_ramstage_loader.c
index e565329616..c4606536ad 100644
--- a/src/lib/loaders/cbfs_ramstage_loader.c
+++ b/src/lib/loaders/cbfs_ramstage_loader.c
@@ -29,7 +29,7 @@ static int cbfs_load_ramstage(struct prog *ramstage)
{
struct rmod_stage_load rmod_ram = {
.cbmem_id = CBMEM_ID_RAMSTAGE,
- .name = ramstage->name,
+ .prog = ramstage,
};
if (rmodule_stage_load_from_cbfs(&rmod_ram)) {
@@ -37,10 +37,6 @@ static int cbfs_load_ramstage(struct prog *ramstage)
return -1;
}
- prog_set_area(ramstage, cbmem_entry_start(rmod_ram.cbmem_entry),
- cbmem_entry_size(rmod_ram.cbmem_entry));
- prog_set_entry(ramstage, rmod_ram.entry, NULL);
-
return 0;
}