Re: [PATCH 1/3] arm64: add EFI stub

2013-12-16 Thread Catalin Marinas
On Fri, Dec 06, 2013 at 02:55:54PM +, Mark Salter wrote: > On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > > + add x2, sp, 16 > > > + str x8, [x2] > > > + bl efi_entry > > > +

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-16 Thread Catalin Marinas
On Fri, Dec 06, 2013 at 02:55:54PM +, Mark Salter wrote: On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: + add x2, sp, 16 + str x8, [x2] + bl efi_entry + cmn x0, #1

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > Hi Mark, > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > +#include > > +#include > > + > > +#include > > + > > +#define EFI_LOAD_ERROR 0x8001 > > It's defined already but I see why you can't include

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Fri, 2013-12-06 at 14:38 +0100, Leif Lindholm wrote: > On Fri, Dec 06, 2013 at 08:34:30AM -0500, Mark Salter wrote: > > > Or just disable runtime services on the switch to big ending. Big endian > > > should not disable the stub (but getting it to work could be a follow-up > > > patch) > > > >

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Leif Lindholm
On Fri, Dec 06, 2013 at 08:34:30AM -0500, Mark Salter wrote: > > Or just disable runtime services on the switch to big ending. Big endian > > should not disable the stub (but getting it to work could be a follow-up > > patch) > > > The other problem with BE is that the PE/COFF masquerading is

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Fri, 2013-12-06 at 12:25 +, Grant Likely wrote: > On Thu, 5 Dec 2013 15:28:06 +, Catalin Marinas > wrote: > > On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: > > > On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > > > > On Fri, Nov 29, 2013 at 10:05:10PM +,

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Grant Likely
On Thu, 5 Dec 2013 15:28:06 +, Catalin Marinas wrote: > On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: > > On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > > > This patch adds PE/COFF header fields

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Grant Likely
On Fri, 29 Nov 2013 17:05:10 -0500, Mark Salter wrote: > This patch adds PE/COFF header fields to the start of the Image > so that it appears as an EFI application to EFI firmware. An EFI > stub is included to allow direct booting of the kernel Image. Due > to EFI firmware limitations, only

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Grant Likely
On Fri, 29 Nov 2013 17:05:10 -0500, Mark Salter msal...@redhat.com wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Due to EFI firmware

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Grant Likely
On Thu, 5 Dec 2013 15:28:06 +, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Fri, 2013-12-06 at 12:25 +, Grant Likely wrote: On Thu, 5 Dec 2013 15:28:06 +, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: On Fri, Nov 29, 2013 at

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Leif Lindholm
On Fri, Dec 06, 2013 at 08:34:30AM -0500, Mark Salter wrote: Or just disable runtime services on the switch to big ending. Big endian should not disable the stub (but getting it to work could be a follow-up patch) The other problem with BE is that the PE/COFF masquerading is built into

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Fri, 2013-12-06 at 14:38 +0100, Leif Lindholm wrote: On Fri, Dec 06, 2013 at 08:34:30AM -0500, Mark Salter wrote: Or just disable runtime services on the switch to big ending. Big endian should not disable the stub (but getting it to work could be a follow-up patch) The other

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-06 Thread Mark Salter
On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: Hi Mark, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: +#include linux/linkage.h +#include linux/init.h + +#include asm/assembler.h + +#define EFI_LOAD_ERROR 0x8001 It's defined already but I

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Catalin Marinas
On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: > On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > > This patch adds PE/COFF header fields to the start of the Image > > > so that it appears as an EFI

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Mark Salter
On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > This patch adds PE/COFF header fields to the start of the Image > > so that it appears as an EFI application to EFI firmware. An EFI > > stub is included to allow direct

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Catalin Marinas
Hi Mark, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > This patch adds PE/COFF header fields to the start of the Image > so that it appears as an EFI application to EFI firmware. An EFI > stub is included to allow direct booting of the kernel Image. Due > to EFI firmware

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Catalin Marinas
Hi Mark, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Due to EFI firmware limitations,

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Mark Salter
On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-05 Thread Catalin Marinas
On Thu, Dec 05, 2013 at 02:43:23PM +, Mark Salter wrote: On Thu, 2013-12-05 at 14:18 +, Catalin Marinas wrote: On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Mark Salter
On Tue, 2013-12-03 at 18:38 +, Will Deacon wrote: > Hi Mark, Roy, > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > > This patch adds PE/COFF header fields to the start of the Image > > so that it appears as an EFI application to EFI firmware. An EFI > > stub is included to

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Roy Franz
On Tue, Dec 3, 2013 at 10:38 AM, Will Deacon wrote: > Hi Mark, Roy, > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: >> This patch adds PE/COFF header fields to the start of the Image >> so that it appears as an EFI application to EFI firmware. An EFI >> stub is included to allow

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Will Deacon
Hi Mark, Roy, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: > This patch adds PE/COFF header fields to the start of the Image > so that it appears as an EFI application to EFI firmware. An EFI > stub is included to allow direct booting of the kernel Image. Due > to EFI firmware

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Will Deacon
Hi Mark, Roy, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Due to EFI firmware

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Roy Franz
On Tue, Dec 3, 2013 at 10:38 AM, Will Deacon will.dea...@arm.com wrote: Hi Mark, Roy, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Mark Salter
On Tue, 2013-12-03 at 18:38 +, Will Deacon wrote: Hi Mark, Roy, On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow

[PATCH 1/3] arm64: add EFI stub

2013-11-29 Thread Mark Salter
This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Due to EFI firmware limitations, only little endian kernels with 4K page sizes are supported at this time.

[PATCH 1/3] arm64: add EFI stub

2013-11-29 Thread Mark Salter
This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Due to EFI firmware limitations, only little endian kernels with 4K page sizes are supported at this time.