Page MenuHomeFreeBSD

D32357.1775049539.diff
No OneTemporary

Size
939 B
Referenced Files
None
Subscribers
None

D32357.1775049539.diff

diff --git a/sys/arm/arm/nexus.c b/sys/arm/arm/nexus.c
--- a/sys/arm/arm/nexus.c
+++ b/sys/arm/arm/nexus.c
@@ -77,6 +77,7 @@
#define DEVTONX(dev) ((struct nexus_device *)device_get_ivars(dev))
static struct rman mem_rman;
+static struct rman irq_rman;
static int nexus_probe(device_t);
static int nexus_attach(device_t);
@@ -171,6 +172,12 @@
if (rman_init(&mem_rman) ||
rman_manage_region(&mem_rman, 0, BUS_SPACE_MAXADDR))
panic("nexus_probe mem_rman");
+ irq_rman.rm_start = 0;
+ irq_rman.rm_end = ~0;
+ irq_rman.rm_type = RMAN_ARRAY;
+ irq_rman.rm_descr = "Interrupts";
+ if (rman_init(&irq_rman) || rman_manage_region(&irq_rman, 0, ~0))
+ panic("nexus_attach irq_rman");
/*
* First, deal with the children we know about already
@@ -227,6 +234,10 @@
flags &= ~RF_ACTIVE;
switch (type) {
+ case SYS_RES_IRQ:
+ rm = &irq_rman;
+ break;
+
case SYS_RES_MEMORY:
case SYS_RES_IOPORT:
rm = &mem_rman;

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 1, 1:18 PM (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28238753
Default Alt Text
D32357.1775049539.diff (939 B)

Event Timeline