Author: andrew
Date: Mon Nov 23 17:05:28 2015
New Revision: 291210
URL: https://svnweb.freebsd.org/changeset/base/291210

Log:
  Only enable the first interrupt for now, we don't correctly configure or
  route interrupts to the needed cpu.
  
  Sponsored by: ABT Systems Ltd

Modified:
  head/sys/arm/arm/pmu.c

Modified: head/sys/arm/arm/pmu.c
==============================================================================
--- head/sys/arm/arm/pmu.c      Mon Nov 23 15:49:50 2015        (r291209)
+++ head/sys/arm/arm/pmu.c      Mon Nov 23 17:05:28 2015        (r291210)
@@ -58,7 +58,11 @@ __FBSDID("$FreeBSD$");
 #include <machine/cpu.h>
 #include <machine/intr.h>
 
+#ifdef notyet
 #define        MAX_RLEN        8
+#else
+#define        MAX_RLEN        1
+#endif
 
 struct pmu_softc {
        struct resource         *res[MAX_RLEN];
@@ -84,6 +88,8 @@ static struct ofw_compat_data compat_dat
 
 static struct resource_spec pmu_spec[] = {
        { SYS_RES_IRQ,          0,      RF_ACTIVE },
+       /* We don't currently handle pmu events, other than on cpu 0 */
+#if notyet
        { SYS_RES_IRQ,          1,      RF_ACTIVE | RF_OPTIONAL },
        { SYS_RES_IRQ,          2,      RF_ACTIVE | RF_OPTIONAL },
        { SYS_RES_IRQ,          3,      RF_ACTIVE | RF_OPTIONAL },
@@ -91,6 +97,7 @@ static struct resource_spec pmu_spec[] =
        { SYS_RES_IRQ,          5,      RF_ACTIVE | RF_OPTIONAL },
        { SYS_RES_IRQ,          6,      RF_ACTIVE | RF_OPTIONAL },
        { SYS_RES_IRQ,          7,      RF_ACTIVE | RF_OPTIONAL },
+#endif
        { -1, 0 }
 };
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to