On Tue, 2011-02-01 at 13:13 -0600, Scott Wood wrote:
> On Tue, 1 Feb 2011 12:48:45 -0600
> Dave Kleikamp <[email protected]> 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 <[email protected]>
> > Cc: Benjamin Herrenschmidt <[email protected]>
> > Cc: Josh Boyer <[email protected]>
> > Cc: [email protected]
> > ---
> > 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
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev