[OpenBIOS] [PATCH 3/4] ppc: use separate context to call client images

Segher Boessenkool segher at kernel.crashing.org
Sun May 1 22:38:09 CEST 2016


On Sun, May 01, 2016 at 04:35:53PM -0400, Programmingkid wrote:
> 
> On May 1, 2016, at 4:18 PM, Segher Boessenkool wrote:
> 
> > On Sun, May 01, 2016 at 11:23:01AM +0100, Mark Cave-Ayland wrote:
> >> unsigned int start_elf(unsigned long entry_point, unsigned long param);
> > 
> >> @@ -609,7 +611,7 @@ go(void)
> >>     feval("saved-program-state >sps.entry @");
> >>     addr = POP();
> >> 
> >> -    call_elf(0, 0, addr);
> >> +    start_elf((unsigned int)addr, 0);
> > 
> > That should cast to unsigned long, instead?
> 
> The ppc target is only 32 bits, and so it int. Did you want this code to work on ppc64?

The declaration is "long" (as it should be).


Segher



More information about the OpenBIOS mailing list