From d1185bfd358fa3d72d94255961926162eff9f609 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 26 May 2009 14:00:49 +0000 Subject: Attached patch moves the CBFS payload loader to selfboot.c as it's the only selfboot user in CBFS. This way, CBFS can be used without importing selfboot.c, as long as no payloads are loaded. Signed-off-by: Patrick Georgi Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4304 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/cbfs.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/lib/cbfs.c') diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 4c025d1472..b5fb9b15eb 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -174,24 +174,6 @@ void *cbfs_load_optionrom(u16 vendor, u16 device, void * dest) return dest; } -void * cbfs_load_payload(struct lb_memory *lb_mem, const char *name) -{ - int selfboot(struct lb_memory *mem, struct cbfs_payload *payload); - struct cbfs_payload *payload = (struct cbfs_payload *) - cbfs_find_file(name, CBFS_TYPE_PAYLOAD); - - struct cbfs_payload_segment *segment, *first_segment; - - if (payload == NULL) - return (void *) -1; - printk_debug("Got a payload\n"); - first_segment = segment = &payload->segments; - selfboot(lb_mem, payload); - printk_emerg("SELFBOOT RETURNED!\n"); - - return (void *) -1; -} - void * cbfs_load_stage(const char *name) { struct cbfs_stage *stage = (struct cbfs_stage *) -- cgit v1.2.3