[PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

Scott Wood scottwood at freescale.com
Wed Feb 2 06:13:57 EST 2011


On Tue, 1 Feb 2011 12:48:45 -0600
Dave Kleikamp <shaggy at linux.vnet.ibm.com> wrote:

> For AMP, different kernel instances load into separate memory regions.
> Read the start of memory from the device tree and limit the memory to what's
> specified in the device tree.
> 
> Signed-off-by: Dave Kleikamp <shaggy at linux.vnet.ibm.com>
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Josh Boyer <jwboyer at linux.vnet.ibm.com>
> Cc: linuxppc-dev at lists.ozlabs.org
> ---
>  arch/powerpc/boot/treeboot-iss4xx.c |   22 +++++++++++++++++++++-
>  1 files changed, 21 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/boot/treeboot-iss4xx.c b/arch/powerpc/boot/treeboot-iss4xx.c
> index fcc4495..868c8b4 100644
> --- a/arch/powerpc/boot/treeboot-iss4xx.c
> +++ b/arch/powerpc/boot/treeboot-iss4xx.c
> @@ -34,9 +34,28 @@
>  
>  BSS_STACK(4096);
>  
> +static ibm4xx_memstart;

type?

> +static void *iss_4xx_vmlinux_alloc(unsigned long size)
> +{
> +	return ibm4xx_memstart;
>  }

Doesn't this generate a warning for implicitly casting int to void *?

-Scott



More information about the Linuxppc-dev mailing list