Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-02-18 Thread Tomohiro B Berry
/2014 06:52 AM Subject:Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote: > В Fri, 10 Jan 2014 11:58:58 -0600 > Tomohiro B Berry пишет: > > This patch adds bi-endian support for bot

Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-15 Thread Tomohiro B Berry
Define the native endianness */ + +#ifdef GRUB_CPU_WORDS_BIGENDIAN +#define ELFDATA_NATIVE ELFDATA2MSB +#else +#define ELFDATA_NATIVE ELFDATA2LSB +#endif /* The ELF file header. This appears at the start of every ELF file. */ From: Andrey Borzenkov To: The development of GNU

Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-13 Thread Andrey Borzenkov
On Tue, Jan 14, 2014 at 1:29 AM, Tomohiro B Berry wrote: > Hi Colin, > > After some testing, it seems that Grub is able to boot the kernel just fine > with an initrd with only these changes. The initrd is loaded into memory > while still in BE mode and it looks like the jump is handled in the > f

Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-13 Thread Tomohiro B Berry
AM Subject:Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote: > В Fri, 10 Jan 2014 11:58:58 -0600 > Tomohiro B Berry пишет: > > This patch adds bi-endian support for both 32-bit an

Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-13 Thread Colin Watson
On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote: > В Fri, 10 Jan 2014 11:58:58 -0600 > Tomohiro B Berry пишет: > > This patch adds bi-endian support for both 32-bit and 64-bit elf files. > > > > It compares the native endianness to the endianness of the elf file, and > > swaps

Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-10 Thread Andrey Borzenkov
В Fri, 10 Jan 2014 11:58:58 -0600 Tomohiro B Berry пишет: > This patch adds bi-endian support for both 32-bit and 64-bit elf files. > > It compares the native endianness to the endianness of the elf file, and > swaps the header bytes if necessary. This will allow, for example, 32-bit > Big E

[PATCH] Adding Bi-Endian 32-bit and 64-bit Support to the Grub ELF Parser

2014-01-10 Thread Tomohiro B Berry
This patch adds bi-endian support for both 32-bit and 64-bit elf files. It compares the native endianness to the endianness of the elf file, and swaps the header bytes if necessary. This will allow, for example, 32-bit Big Endian grub to load a 64-bit Little Endian kernel. Regards, Tomo Berr