|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/7] xen/arm: Implement hip04-d01 platform
>
> Hi Frediano,
>
> On 11/03/2014 04:46 PM, Frediano Ziglio wrote:
> > Add this new platform to Xen.
> > This platform requires specific code to initialize CPUs.
>
> I guess your platform doesn't support PSCI?
>
No, there is no PSCI support.
> > Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
> > Signed-off-by: Zoltan Kiss <zoltan.kiss@xxxxxxxxxx>
> > ---
> > +static void hip04_reset(void)
> > +{
> > + unsigned long data;
> > +
> > + if ( !gb2 )
> > + return;
>
> gb2 will never be NULL. Xen will panic if the initialization callback
> failed.
>
> > +
> > + data = readl_relaxed(gb2);
> > + writel_relaxed(data & ~0x4000000u, gb2);
> > +
> > + mdelay(10);
> > +}
> > +
> > +static void hip04_set_snoop_filter(unsigned int cluster, unsigned
> int
> > +on) {
> > + unsigned long data;
> > +
> > + if ( !fabric )
> > + return;
>
> Ditto.
>
Done
>
> [..]
>
> > +static void __init hip04_iounmap(void __iomem **p) {
> > + if ( *p )
> > + {
> > + iounmap(*p);
> > + *p = NULL;
> > + }
> > +}
>
> What is used for? Should not iounmap enough?
>
I just like to clear pointers after freeing them.
Frediano
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |