]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Use the right GICD register to initialize IRQs routing
authorJulien Grall <julien.grall@linaro.org>
Thu, 13 Jun 2013 14:52:49 +0000 (15:52 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Jun 2013 16:48:17 +0000 (17:48 +0100)
Currently IRQs routing is initialized to the wrong register and overwrites
interrupt configuration register (ICFGRn).

Reported-by: Sander Bogaert <sander.bogaert@elis.ugent.be>
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c

index d9940ead0511f01a90cf4e4b0f682029eb828a11..177560e3d1f7941cdfbae238422268a9fb6ae02d 100644 (file)
@@ -280,7 +280,7 @@ static void __init gic_dist_init(void)
 
     /* Route all global IRQs to this CPU */
     for ( i = 32; i < gic.lines; i += 4 )
-        GICD[GICD_ICFGR + i / 4] = cpumask;
+        GICD[GICD_ITARGETSR + i / 4] = cpumask;
 
     /* Default priority for global interrupts */
     for ( i = 32; i < gic.lines; i += 4 )