Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150536866
D3723.id9995.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3723.id9995.diff
View Options
Index: head/sys/arm/broadcom/bcm2835/bcm2835_intr.c
===================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_intr.c
+++ head/sys/arm/broadcom/bcm2835/bcm2835_intr.c
@@ -163,7 +163,9 @@
irq = 0;
#ifdef SOC_BCM2836
- if ((ret = bcm2836_get_next_irq(irq)) >= 0)
+ if ((ret = bcm2836_get_next_irq(irq)) < 0)
+ return (-1);
+ if (ret != BCM2836_GPU_IRQ)
return (ret + BANK3_START);
#endif
Index: head/sys/arm/broadcom/bcm2835/bcm2836.h
===================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2836.h
+++ head/sys/arm/broadcom/bcm2835/bcm2836.h
@@ -30,6 +30,8 @@
#ifndef _BCM2815_BCM2836_H
#define _BCM2815_BCM2836_H
+#define BCM2836_GPU_IRQ 8
+
int bcm2836_get_next_irq(int);
void bcm2836_mask_irq(uintptr_t);
void bcm2836_unmask_irq(uintptr_t);
Index: head/sys/arm/broadcom/bcm2835/bcm2836.c
===================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2836.c
+++ head/sys/arm/broadcom/bcm2835/bcm2836.c
@@ -52,7 +52,7 @@
#define ARM_LOCAL_INT_TIMER(n) (0x40 + (n) * 4)
#define ARM_LOCAL_INT_MAILBOX(n) (0x50 + (n) * 4)
#define ARM_LOCAL_INT_PENDING(n) (0x60 + (n) * 4)
-#define INT_PENDING_MASK 0x01f
+#define INT_PENDING_MASK 0x011f
#define MAILBOX0_IRQ 4
#define MAILBOX0_IRQEN (1 << 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 3:57 AM (21 h, 28 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30739263
Default Alt Text
D3723.id9995.diff (1 KB)
Attached To
Mode
D3723: RPI2 - make interrupt dispatching MP safe
Attached
Detach File
Event Timeline
Log In to Comment