Skip to content

Instantly share code, notes, and snippets.

@adukot
Created September 16, 2014 16:17
Show Gist options
  • Save adukot/619564666e3a05a62511 to your computer and use it in GitHub Desktop.
Save adukot/619564666e3a05a62511 to your computer and use it in GitHub Desktop.
--- 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);
@adukot
Copy link
Author

adukot commented Sep 16, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment