From: Ian Campbell Subject: Re: [PATCH RFC 5/7] xen: arm: rewrite start of day page table and cpu bring up Date: Wed, 18 Sep 2013 16:12:19 +0100 Message-ID: <1379517139.11304.252.camel@hastur.hellion.org.uk> References: <1379381846.11304.73.camel@hastur.hellion.org.uk> <1379382050-11821-5-git-send-email-ian.campbell@citrix.com> <5239B159.9000500@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5239B159.9000500@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: julien.grall@citrix.com, stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-09-18 at 14:57 +0100, Julien Grall wrote: > > +static int vexpress_cpu_up(int cpu) > > +{ > > + static int have_set_sysflags = 0; > > + > > + /* XXX separate init hook? */ > > + if ( !have_set_sysflags ) > > + { > > + void __iomem *sysflags; > > + > > + sysflags = ioremap_nocache(V2M_SYS_MMIO_BASE, PAGE_SIZE); > > The device should contains a node with compatible "arm,vexpress-sysreg". > Can you use this node instead of hardcoding value? It doesn't seem to be in the dts's which are designed for use with the fast-models (git://linux-arm.org/arm-dts.git). In any case this code is already conditional on running on a vexpress platform. Making the vexpress support more complete/dynamic is a nice to have but not really a blocker IMHO. Ian.