mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix x86 target build
OFmem is not available on x86. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@860 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -506,7 +506,7 @@ elf_init_program(void)
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user