Author: blueswirl Date: Mon Sep 6 22:56:52 2010 New Revision: 860 URL: http://tracker.coreboot.org/trac/openbios/changeset/860
Log: Fix x86 target build
OFmem is not available on x86.
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/libopenbios/elf_load.c
Modified: trunk/openbios-devel/libopenbios/elf_load.c ============================================================================== --- trunk/openbios-devel/libopenbios/elf_load.c Wed Aug 25 18:58:55 2010 (r859) +++ trunk/openbios-devel/libopenbios/elf_load.c Mon Sep 6 22:56:52 2010 (r860) @@ -506,7 +506,7 @@ size = MIN(phdr[i].p_filesz, phdr[i].p_memsz); if (!size) continue; -#ifndef CONFIG_SPARC32 +#if !defined(CONFIG_SPARC32) && !defined(CONFIG_X86) if( ofmem_claim( phdr[i].p_vaddr, phdr[i].p_memsz, 0 ) == -1 ) { printk("Ignoring failed claim for va %lx memsz %lx!\n", (unsigned long)phdr[i].p_vaddr,