svn commit: r249762 - head/sys/arm/arm
Damjan Marion
dmarion at FreeBSD.org
Mon Apr 22 08:28:54 UTC 2013
Author: dmarion
Date: Mon Apr 22 08:28:53 2013
New Revision: 249762
URL: http://svnweb.freebsd.org/changeset/base/249762
Log:
Initialize GIC_PMRR register on ARM GIC.
Provided by: Thomas Skibo
Modified:
head/sys/arm/arm/gic.c
Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c Mon Apr 22 06:47:27 2013 (r249761)
+++ head/sys/arm/arm/gic.c Mon Apr 22 08:28:53 2013 (r249762)
@@ -134,6 +134,9 @@ gic_init_secondary(void)
/* Enable CPU interface */
gic_c_write_4(GICC_CTLR, 1);
+ /* Set priority mask register. */
+ gic_c_write_4(GICC_PMR, 0xff);
+
/* Enable interrupt distribution */
gic_d_write_4(GICD_CTLR, 0x01);
@@ -199,6 +202,9 @@ arm_gic_attach(device_t dev)
/* Enable CPU interface */
gic_c_write_4(GICC_CTLR, 1);
+ /* Set priority mask register. */
+ gic_c_write_4(GICC_PMR, 0xff);
+
/* Enable interrupt distribution */
gic_d_write_4(GICD_CTLR, 0x01);
More information about the svn-src-head
mailing list