[RFC PATCH 09/23] Fix warnings when building powerpc linux loader 64bit

2014-02-26 Thread Ram Pai
From: Anton Blanchard Fix warnings when building powerpc linux loader 64bit Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/loader/powerpc/ieee1275/linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grub-core/loader/powerpc/ieee1275/linux.c b/grub-co

[RFC PATCH 02/23] Build LE grub as O1

2014-02-26 Thread Ram Pai
Build LE grub as O1 until we add savegpr and restgpr Signed-off-by: Ram Pai From: Anton Blanchard --- configure.ac | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 09e9dfb..10856be 100644 --- a/configure.ac +++ b/configure.ac @@ -73,7

[RFC PATCH 00/23] grub 64bit little-endian on power

2014-02-26 Thread Ram Pai
The following patches enable grub to support 64bit Little Endian Power architecture. Anton Blanchard (12): Add IEEE1275_ADDR helper Fix some more warnings when casting. Add powerpc64 types Fix warnings when building powerpc linux loader 64bit Fix powerpc setjmp/longjmp 64bit issues Add

[RFC PATCH 01/23] Add a new architecture to the build process

2014-02-26 Thread Ram Pai
Add a new architecture to the build process Signed-off-by: Ram Pai Signed-off-by: Tomohiro B Berry Signed-off-by: Thomas Falcon --- Makefile.am | 4 config.h.in | 4 configure.ac| 10 +++--- gentpl.py | 7 --

[RFC PATCH 03/23] ignore .TOC. symbol

2014-02-26 Thread Ram Pai
powerpc64 LE's linker knows how to handle the undefined symbol .TOC. in grub modules. So just ignore that symbol during build. Signed-off-by: Ram Pai --- grub-core/gensyminfo.sh.in | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grub-core/gensyminfo.sh.in b/grub-core/ge

[RFC PATCH 08/23] Add powerpc64 types

2014-02-26 Thread Ram Pai
From: Anton Blanchard Add powerpc64 types Signed-off-by: Ram Pai From: Anton Blanchard --- include/grub/powerpc/types.h | 8 1 file changed, 8 insertions(+) diff --git a/include/grub/powerpc/types.h b/include/grub/powerpc/types.h index a098ae6..7a2fc6b 100644 --- a/include/grub/pow

[RFC PATCH 11/23] Fix powerpc setjmp/longjmp 64bit issues

2014-02-26 Thread Ram Pai
From: Anton Blanchard Fix powerpc setjmp/longjmp 64bit issues Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/lib/powerpc/setjmp.S | 94 +++--- 1 file changed, 52 insertions(+), 42 deletions(-) diff --git a/grub-core/lib/powerpc/setjmp.S b/gru

[RFC PATCH 14/23] Add grub_dl_find_section_addr

2014-02-26 Thread Ram Pai
From: Anton Blanchard ppc64 needs to find the address of the toc and opd sections. Create grub_dl_find_section_addr to do this. We also need grub_dl_find_section, so make it global. Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/kern/dl.c | 27 ++- include

[RFC PATCH 13/23] Add 64bit support to powerpc startup code

2014-02-26 Thread Ram Pai
From: Anton Blanchard Add 64bit support to powerpc startup code Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/kern/powerpc/ieee1275/startup.S | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/grub-core/kern/powerpc/ieee1275/start

[RFC PATCH 06/23] Add IEEE1275_ADDR helper

2014-02-26 Thread Ram Pai
From: Anton Blanchard If the target pointer size doesn't match the IEEE1275 cell size, we need to cast twice to avoid a warning. Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/disk/ieee1275/ofdisk.c | 4 ++-- grub-core/kern/ieee1275/ieee1275.c | 30 +++--

[RFC PATCH 20/23] fix parameter to firmware calls

2014-02-26 Thread Ram Pai
all parameter to firmware calls should to be BigEndian and the results should be CPU endian. Signed-off-by: Ram Pai --- grub-core/disk/ieee1275/nand.c | 41 +- grub-core/disk/ieee1275/ofdisk.c | 22 -- grub-core/kern/ieee1275/ieee1275.c | 132 +++

[RFC PATCH 17/23] Use FUNC_START/FUNC_END for powerpc function definitions

2014-02-26 Thread Ram Pai
From: Anton Blanchard Use FUNC_START/FUNC_END for powerpc function definitions Signed-off-by: Ram Pai From:Anton Blanchard --- grub-core/kern/powerpc/cache.S | 6 -- grub-core/lib/powerpc/setjmp.S | 8 +--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/grub-core/

[RFC PATCH 15/23] Add ppc64 relocations

2014-02-26 Thread Ram Pai
From: Anton Blanchard Add ppc64 relocations Signed-off-by: Ram Pai From:Anton Blanchard --- grub-core/kern/powerpc/dl.c | 179 +--- include/grub/elf.h | 3 + 2 files changed, 172 insertions(+), 10 deletions(-) diff --git a/grub-core/ker

[RFC PATCH 10/23] GRUB_ELF_R_PPC_* processing is applicable only for 32 bit bootloader.

2014-02-26 Thread Ram Pai
GRUB_ELF_R_PPC_* processing is applicable only for 32 bit bootloader. Signed-off-by: Ram Pai --- grub-core/kern/powerpc/dl.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grub-core/kern/powerpc/dl.c b/grub-core/kern/powerpc/dl.c index 3a7fa3e..7677e5a 100644 --- a/gru

[RFC PATCH 23/23] Optional: Power7 VSX instructions workaround.

2014-02-26 Thread Ram Pai
Power7 cannot handle VSX instructions correctly. It segfaults. This patch is applicable only for power7 systems. Signed-off-by: Ram Pai --- grub-core/fs/fshelp.c | 10 ++ grub-core/kern/term.c | 11 +++ grub-core/normal/term.c | 42 ++

[RFC PATCH 04/23] grub-install can now recognize and install a LE grub boot loader

2014-02-26 Thread Ram Pai
grub-install can now recognize and install a LE grub boot loader Signed-off-by: Ram Pai --- include/grub/offsets.h | 5 + include/grub/util/install.h | 1 + util/grub-install-common.c | 1 + util/grub-install.c | 15 +-- util/mkimage.c | 19 +

[RFC PATCH 21/23] powerpc64 is not necessarily BigEndian anymore! :)

2014-02-26 Thread Ram Pai
From: Anton Blanchard powerpc64 is not necessarily BigEndian anymore! :) Signed-off-by: Ram Pai --- include/grub/powerpc/types.h | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/grub/powerpc/types.h b/include/grub/powerpc/types.h index 7a2fc6b..ab138d4 10

[RFC PATCH 19/23] align .toc section on 4byte boundary.

2014-02-26 Thread Ram Pai
the .toc section in powerpc64le modules are sometimes not aligned on a four byte boundary. This fails the module linker especially when processing R_PPC64_TOC16_LO_DS, since the addresses are expected to be aligned on 4byte boundary. Signed-off-by: Ram Pai --- grub-core/kern/dl.c | 5 +

[RFC PATCH 16/23] ppc64 doesn't need libgcc routines

2014-02-26 Thread Ram Pai
From: Anton Blanchard ppc64 doesn't need libgcc routines Signed-off-by: Ram Pai From: Anton Blanchard --- include/grub/libgcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/libgcc.h b/include/grub/libgcc.h index fdc6611..69a95bc 100644 --- a/include/grub/l

[RFC PATCH 18/23] .TOC. symbol is special in ppc64le

2014-02-26 Thread Ram Pai
.TOC. symbol is special in ppc64le . It maps to the address of the .toc section. Signed-off-by: Ram Pai --- grub-core/kern/dl.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c index de2d0ed..ce2ff3

Re: [PATCH] Make CTRL and ALT keys work as expected on EFI systems (version 5).

2014-02-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 26.02.2014 03:58, Mroczek, Joseph T wrote: >> From: Peter Jones >> Sent: Tuesday, February 25, 2014 2:12 PM >> >> This is version 4. >> >> Changes from version 1: >> - handles SHIFT as a modifier >> - handles F11 and F12 keys >> - uses the handle provided by the system table to find our _EX prot

[RFC PATCH 12/23] Add powerpc64 ieee1275 trampoline

2014-02-26 Thread Ram Pai
From: Anton Blanchard Add a trampoline so a 64bit grub can call a 32 bit OF Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/Makefile.core.def | 2 + grub-core/kern/powerpc/ieee1275/entry.S | 150 +++ include/grub/powerpc/ieee1275/ieee1275

[RFC PATCH 22/23] fix segfaults if initrd

2014-02-26 Thread Ram Pai
grub segfaults if initrd is specified before specifying the kernel. The problem is the initrd module sees that kernel is not specified and takes the fail path. In the fail path it checks if anything has be malloc'ed. Unfortunately the variable that it looks to check for is a uninitialized stac

[RFC PATCH 05/23] set ABI version in e_flag of the PPC64LE ELF image.

2014-02-26 Thread Ram Pai
set the ABI version to 0x02 in the e_flag of the PPC64LE ELF image. Signed-off-by: Ram Pai --- include/grub/elf.h| 1 + util/grub-mkimagexx.c | 4 2 files changed, 5 insertions(+) diff --git a/include/grub/elf.h b/include/grub/elf.h index caa7963..bee7583 100644 --- a/include/grub/elf.

[RFC PATCH 07/23] Fix some more warnings when casting.

2014-02-26 Thread Ram Pai
From: Anton Blanchard Fix some more warnings when casting. Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/disk/ieee1275/ofdisk.c | 2 +- grub-core/lib/powerpc/relocator.c | 8 grub-core/net/drivers/ieee1275/ofnet.c | 2 +- 3 files changed, 6 insertions(+), 6 de