Subject: Re: [PATCH 2/4] powerpc/boot/wrapper: use the pseries wrapper for zImage.epapr

From: Benjamin Herrenschmidt <[email-masked]>
Date: Wed, 11 Feb 2015 13:20:15 +1100

On Wed, 2015-02-11 at 10:16 +0800, Jeremy Kerr wrote:
> Hi Ben,
> 
> >> We'll likely be entering the zImage.epapr as BE, so include the pseries
> >> implementation of _zimage_start, which adds the endian fixup magic.
> > 
> > Wont that break embedded epapr stuff ?
> 
> How so? This will just give us the endian fixup trampoline (followed by
> a branch to _zimage_start_lib) as the entry point, rather than directly
> entering _zimage_start_lib. Will that not work on embedded?

Hrm, the trampoline only works on server, so it would have a weird
effect if booting embedded with the wrong endian, but ok.

Ben.