From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 1/2] xen/arm: gic-v3: Clean-up the GIC*_PIDR2_* definitions Date: Tue, 15 Sep 2015 10:35:33 +0100 Message-ID: <1442309733.3549.354.camel@citrix.com> References: <1442244744-30190-1-git-send-email-julien.grall@citrix.com> <1442244744-30190-2-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zbmei-00063C-Ho for xen-devel@lists.xenproject.org; Tue, 15 Sep 2015 09:36:04 +0000 In-Reply-To: <1442244744-30190-2-git-send-email-julien.grall@citrix.com> 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 , xen-devel@lists.xenproject.org Cc: stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2015-09-14 at 16:32 +0100, Julien Grall wrote: > GICR_PIDR2 and GICD_PIDR2 use the same register layout. Rather than > define twice, one of which is an alias to the other, introduce > GIC_PIDR2_* > defines. > > Also: > * Use the same prefix for the mask and the value > * Integrate the shift in the value to avoid shifting in the code > * Use GICv* to match the value name in the spec > * Move them in a proper place > > Signed-off-by: Julien Grall Acked-by: Ian Campbell