Move otherwise unused stuff inside CONFIG_PAYLOAD_ELF_LOADER.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@783 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Carl-Daniel Hailfinger 2008-08-18 13:03:43 +00:00
commit 5f2ac21cd8

View file

@ -124,13 +124,12 @@ void __attribute__((stdcall)) stage1_main(u32 bist)
{
int ret;
struct mem_file archive;
void *entry;
#ifdef CONFIG_PAYLOAD_ELF_LOADER
struct mem_file result;
int elfboot_mem(struct lb_memory *mem, void *where, int size);
#endif /* CONFIG_PAYLOAD_ELF_LOADER */
void *entry;
/* we can't statically init this hack. */
/* Why can't we statically init this hack? */
unsigned char faker[64];
struct lb_memory *mem = (struct lb_memory*) faker;
@ -140,7 +139,7 @@ void __attribute__((stdcall)) stage1_main(u32 bist)
mem->map[0].size.lo = (32*1024*1024);
mem->map[0].size.hi = 0;
mem->map[0].type = LB_MEM_RAM;
#endif /* CONFIG_PAYLOAD_ELF_LOADER */
post_code(POST_STAGE1_MAIN);