[PATCH 1/1] Change the default link address for pSeries zImage kernels.

Michael Ellerman michael at ellerman.id.au
Mon Jun 23 22:20:37 EST 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080623/26c0b7ee/attachment.pgp>


More information about the Linuxppc-dev mailing list