aboutsummaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-04-02 14:22:49 -0700
committerChristian Cunningham <cc@localhost>2022-04-02 14:22:49 -0700
commit81cb7fc05c0c8f6a260378fe1312f68cc5da4ce8 (patch)
tree494ad145c25367c50180a30ff868d83691df7e36 /kernel/cpu
parent09179481b0954e17571ac3b5c8bd85411878d51c (diff)
Pass event triggers to thread argument
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cpu/irq.c b/kernel/cpu/irq.c
index 2990881..d19c6c4 100644
--- a/kernel/cpu/irq.c
+++ b/kernel/cpu/irq.c
@@ -46,7 +46,7 @@ unsigned long c_irq_handler(void)
if (load32(IRQ_PENDING2) & (1 << (GPIO_IRQ_0-32)) && irqs[GPIO_BANK_1_IRQ].handler != 0) {
struct GPIOInfo* g = irqs[GPIO_BANK_1_IRQ].handler_info;
if (*GPEDS0 & g->pin) {
- add_thread(irqs[GPIO_BANK_1_IRQ].handler, 0, g->priority);
+ add_thread(irqs[GPIO_BANK_1_IRQ].handler, (void*)*GPEDS0, g->priority);
*GPEDS0 = g->pin;
scheduled = 1;
}