Created
September 16, 2014 16:17
-
-
Save adukot/619564666e3a05a62511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- gic.c.orig 2014-09-16 16:05:27.000000000 +0000 | |
+++ gic.c 2014-09-16 16:10:54.000000000 +0000 | |
@@ -527,7 +527,7 @@ | |
bus_space_subregion(sc->sc_memt, mpcaa->mpcaa_memh, mpcaa->mpcaa_off1, | |
4096, &sc->sc_gicdh); | |
bus_space_subregion(sc->sc_memt, mpcaa->mpcaa_memh, mpcaa->mpcaa_off2, | |
- 4096, &sc->sc_gicch); | |
+ 256, &sc->sc_gicch); | |
sc->sc_gic_type = gicd_read(sc, GICD_TYPER); | |
sc->sc_pic.pic_maxsources = GICD_TYPER_LINES(sc->sc_gic_type); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in Cortex-A9 case
Distributor Registers size = 4096
CPU Interface Registers = 256 != 4096!
see also
http://nxr.netbsd.org/source/xref/src-freebsd/sys/boot/fdt/dts/arm/rk3188.dtsi