]> xenbits.xensource.com Git - xen.git/commitdiff
arm: Add a comment explaining the GICD writes in the GICC init function
authorTim Deegan <tim@xen.org>
Tue, 13 Mar 2012 15:10:53 +0000 (15:10 +0000)
committerTim Deegan <tim@xen.org>
Tue, 13 Mar 2012 15:10:53 +0000 (15:10 +0000)
Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c

index adc10bbe2f8c515322c2a20bc300851ce6afd0d6..1ff445810af305d139d5466ea517c0dce4c0d8e0 100644 (file)
@@ -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 */