diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-02-25 00:21:10 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-03-03 21:47:40 +0100 |
commit | ceebc0503f15788604d31e16ac391ce8f99ca32e (patch) | |
tree | db46eafa691835178b4ed84a3e45b9e6eb37be98 /src/lib/loaders | |
parent | 4904802efc8eee37f95163f60823509e2a208af4 (diff) |
selfboot: use bootmem infrastructure
Instead of packing and unpacking entries in lb_mem use
the bootmem infrastructure for performing sanity checks
during payload loading.
Change-Id: Ica2bee7ebb0f6bf9ded31deac8cb700aa387bc7a
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5303
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/lib/loaders')
-rw-r--r-- | src/lib/loaders/load_and_run_payload.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/loaders/load_and_run_payload.c b/src/lib/loaders/load_and_run_payload.c index 3e1eafb7b9..7e1383e89b 100644 --- a/src/lib/loaders/load_and_run_payload.c +++ b/src/lib/loaders/load_and_run_payload.c @@ -20,7 +20,6 @@ #include <stdint.h> #include <stdlib.h> #include <console/console.h> -#include <boot/coreboot_tables.h> #include <fallback.h> #include <lib.h> #include <payload_loader.h> @@ -44,7 +43,6 @@ struct payload *payload_load(void) { int i; void *entry; - struct lb_memory *mem; const struct payload_loader_ops *ops; struct payload *payload = &global_payload; @@ -64,8 +62,7 @@ struct payload *payload_load(void) if (i == ARRAY_SIZE(payload_ops)) return NULL; - mem = get_lb_mem(); - entry = selfload(mem, payload); + entry = selfload(payload); if (entry == NULL) return NULL; |