Changes in kernel/arch/ppc32/src/interrupt.c [ffe276f:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/interrupt.c
rffe276f rd99c1d2 44 44 #include <print.h> 45 45 46 46 47 void start_decrementer(void) 47 48 { 48 49 asm volatile ( 49 "mtdec %[dec]\n" 50 :: [dec] "r" (1000) 50 "mtdec %0\n" 51 : 52 : "r" (1000) 51 53 ); 52 54 } 53 55 54 /** External interrupts handler 55 * 56 */ 56 57 /** Handler of external interrupts */ 57 58 static void exception_external(int n, istate_t *istate) 58 59 { 59 uint8_t inum;60 int inum; 60 61 61 while ((inum = pic_get_pending()) != 255) {62 while ((inum = pic_get_pending()) != -1) { 62 63 irq_t *irq = irq_dispatch_and_lock(inum); 63 64 if (irq) { … … 79 80 } 80 81 81 irq_spinlock_unlock(&irq->lock, false);82 spinlock_unlock(&irq->lock); 82 83 } else { 83 84 /* … … 85 86 */ 86 87 #ifdef CONFIG_DEBUG 87 printf("cpu%" PRIs ": spurious interrupt (inum=%" PRIu8 ")\n", 88 CPU->id, inum); 88 printf("cpu%u: spurious interrupt (inum=%d)\n", CPU->id, inum); 89 89 #endif 90 90 } 91 91 } 92 92 } 93 93 94 94 95 static void exception_decrementer(int n, istate_t *istate) … … 97 98 clock(); 98 99 } 100 99 101 100 102 /* Initialize basic tables for exception dispatching */
Note:
See TracChangeset
for help on using the changeset viewer.