Only enable the first interrupt for now, we don't correctly configure or

route interrupts to the needed cpu.

Sponsored by:	ABT Systems Ltd
This commit is contained in:
andrew 2015-11-23 17:05:28 +00:00
parent baa220781b
commit a77fc20235

View File

@ -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_data[] = {
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 }
};