Changes in kernel/arch/mips32/src/interrupt.c [2b698d8:da1bafb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/interrupt.c
r2b698d8 rda1bafb 38 38 #include <arch.h> 39 39 #include <arch/cp0.h> 40 #include <arch/smp/dorder.h>41 40 #include <time/clock.h> 42 41 #include <ipc/sysipc.h> … … 49 48 function virtual_timer_fnc = NULL; 50 49 static irq_t timer_irq; 51 static irq_t dorder_irq;52 50 53 51 // TODO: This is SMP unsafe!!! … … 151 149 } 152 150 153 static irq_ownership_t dorder_claim(irq_t *irq)154 {155 return IRQ_ACCEPT;156 }157 158 static void dorder_irq_handler(irq_t *irq)159 {160 dorder_ipi_ack(1 << dorder_cpuid());161 }162 163 151 /* Initialize basic tables for exception dispatching */ 164 152 void interrupt_init(void) … … 175 163 timer_start(); 176 164 cp0_unmask_int(TIMER_IRQ); 177 178 irq_initialize(&dorder_irq);179 dorder_irq.devno = device_assign_devno();180 dorder_irq.inr = DORDER_IRQ;181 dorder_irq.claim = dorder_claim;182 dorder_irq.handler = dorder_irq_handler;183 irq_register(&dorder_irq);184 185 cp0_unmask_int(DORDER_IRQ);186 165 } 187 166
Note:
See TracChangeset
for help on using the changeset viewer.