From: Tim Deegan Date: Tue, 13 Mar 2012 15:10:53 +0000 (+0000) Subject: arm: Add a comment explaining the GICD writes in the GICC init function X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=139692dee47dbc35b9a646a9bafde2bca3cd4e6e;p=xen.git arm: Add a comment explaining the GICD writes in the GICC init function Signed-off-by: Tim Deegan Committed-by: Ian Campbell --- diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index adc10bbe2f..1ff445810a 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -224,7 +224,9 @@ static void __cpuinit gic_cpu_init(void) { int i; - /* Disable all PPI and enable all SGI */ + /* The first 32 interrupts (PPI and SGI) are banked per-cpu, so + * even though they are controlled with GICD registers, they must + * be set up here with the other per-cpu state. */ GICD[GICD_ICENABLER] = 0xffff0000; /* Disable all PPI */ GICD[GICD_ISENABLER] = 0x0000ffff; /* Enable all SGI */ /* Set PPI and SGI priorities */