[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Add multi-boot kernel loading support
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] [PATCH] Add multi-boot kernel loading support |
Date: |
Tue, 3 Feb 2009 10:53:39 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Alexander Graf wrote:
> >>--- elf_ops.h (revision 6501)
> >>+++ elf_ops.h (working copy)
> >>@@ -195,6 +195,10 @@
> >> }
> >>
> >> if (ELF_MACHINE != ehdr.e_machine)
> >>+#if (ELF_MACHINE == EM_X86_64) && !defined(CONFIG_USER_ONLY)
> >>+ /* x86_64 systems can run i386 code as well */
> >>+ if(ehdr.e_machine != EM_386)
> >>+#endif
> >> goto fail;
> >>
> >> if (pentry)
> >
> >Seems like an unrelated fix.
>
> Actually it's not. If you want to load a 32-bit elf (multiboot)
> executable on an x86_64 system, you need this patch.
Why CONFIG_USER_ONLY?
Does it mean qemu-x86_64 (the user one) will behave differently given
a 32-bit ELF file if you built qemu-system-x86_64 at the same time?
-- Jamie
Re: [Qemu-devel] [PATCH] Add multi-boot kernel loading support, Kevin Wolf, 2009/02/03
Re: [Qemu-devel] [PATCH] Add multi-boot kernel loading support, Paul Brook, 2009/02/03