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