diff options
author | dmarion <dmarion@FreeBSD.org> | 2013-04-22 08:28:53 +0000 |
---|---|---|
committer | dmarion <dmarion@FreeBSD.org> | 2013-04-22 08:28:53 +0000 |
commit | 3594d490ac6c1d5e1212d41ef456ae2593aa2287 (patch) | |
tree | 611705a3a7ec254fefa4452f553d4ce6b3b44333 /sys/arm | |
parent | 8e151bb48210fd92892a73fa9b841b30fa901742 (diff) | |
download | FreeBSD-src-3594d490ac6c1d5e1212d41ef456ae2593aa2287.zip FreeBSD-src-3594d490ac6c1d5e1212d41ef456ae2593aa2287.tar.gz |
Initialize GIC_PMRR register on ARM GIC.
Provided by: Thomas Skibo
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/gic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arm/arm/gic.c b/sys/arm/arm/gic.c index ba25c1d..2871d9d 100644 --- a/sys/arm/arm/gic.c +++ b/sys/arm/arm/gic.c @@ -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); |