Date: Mon, 23 Nov 2015 17:05:28 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291210 - head/sys/arm/arm Message-ID: <201511231705.tANH5SUe042728@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 } };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511231705.tANH5SUe042728>