Changes in kernel/arch/ppc32/src/drivers/pic.c [ffe276f:c2417bc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/pic.c
rffe276f rc2417bc 32 32 /** @file 33 33 */ 34 34 35 35 36 #include <arch/drivers/pic.h> … … 78 79 } 79 80 80 /** Return number of pending interrupts 81 * 82 */ 83 uint8_t pic_get_pending(void) 81 /** Return number of pending interrupt */ 82 int pic_get_pending(void) 84 83 { 85 84 if (pic) { 86 uint32_t pending;85 int pending; 87 86 88 87 pending = pic[PIC_PENDING_LOW]; 89 if (pending != 0)88 if (pending) 90 89 return fnzb32(pending); 91 90 92 91 pending = pic[PIC_PENDING_HIGH]; 93 if (pending != 0)92 if (pending) 94 93 return fnzb32(pending) + 32; 95 94 } 96 95 97 return 255;96 return -1; 98 97 } 99 98
Note:
See TracChangeset
for help on using the changeset viewer.