From 5f2ac21cd89793bbedf5b5cda4976f0c6ca870e9 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Mon, 18 Aug 2008 13:03:43 +0000 Subject: [PATCH] Move otherwise unused stuff inside CONFIG_PAYLOAD_ELF_LOADER. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://coreboot.org/repository/coreboot-v3@783 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/stage1.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/stage1.c b/arch/x86/stage1.c index 2ae6f259ce..922784b5e9 100644 --- a/arch/x86/stage1.c +++ b/arch/x86/stage1.c @@ -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);