[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 02 of 11] arm: Add a comment explaining the GICD writes in the GICC init function



# HG changeset patch
# User Tim Deegan <tim@xxxxxxx>
# Date 1331311595 0
# Node ID ad97676f4dd1f69fba7fec4aa4ff5f1bfc02d254
# Parent  2672314f141da3d9685257083723b2e512f00f02
arm: Add a comment explaining the GICD writes in the GICC init function.

Signed-off-by: Tim Deegan <tim@xxxxxxx>

diff -r 2672314f141d -r ad97676f4dd1 xen/arch/arm/gic.c
--- a/xen/arch/arm/gic.c        Fri Mar 09 16:46:35 2012 +0000
+++ b/xen/arch/arm/gic.c        Fri Mar 09 16:46:35 2012 +0000
@@ -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 */

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.