[PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address
Dave Kleikamp
shaggy at linux.vnet.ibm.com
Wed Feb 2 06:41:11 EST 2011
On Tue, 2011-02-01 at 13:13 -0600, Scott Wood wrote:
> 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?
Oops, I'll fix this
> > +static void *iss_4xx_vmlinux_alloc(unsigned long size)
> > +{
> > + return ibm4xx_memstart;
> > }
>
> Doesn't this generate a warning for implicitly casting int to void *?
Probably. I could have missed it. I'll fix this too.
>
> -Scott
>
Thanks,
Shaggy
--
Dave Kleikamp
IBM Linux Technology Center
More information about the Linuxppc-dev
mailing list