On Mon, 2008-06-23 at 18:13 +1000, Tony Breeds wrote: > Currently we set the start of the .text section to be 4Mb for pSeries. > In situations where the zImage is > 8Mb we'll fail to boot (due to > overlapping with OF). Move .text in a zImage from 4MB to 64MB (well past OF). ... > diff --git a/arch/powerpc/boot/oflib.c b/arch/powerpc/boot/oflib.c > index 95b8fd6..93a1a84 100644 > --- a/arch/powerpc/boot/oflib.c > +++ b/arch/powerpc/boot/oflib.c > @@ -168,8 +168,19 @@ void *of_claim(unsigned long virt, unsigned long size, > unsigned long align) > > void *of_vmlinux_alloc(unsigned long size) > { > - void *p = malloc(size); > - > + unsigned long start = (unsigned long)_start, end = (unsigned long)_end; > + void *addr; > + void *p; > + > + /* With some older POWER4 firmware the we need to claim the area
Sorry, typo/grammaro :/ ^^^^^^ cheers -- Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev