Changeset 46c20c8 in mainline for kernel/arch/ppc32/src/drivers/pic.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/arch/ppc32/src/drivers/pic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/pic.c
rfb150d78 r46c20c8 32 32 /** @file 33 33 */ 34 35 34 36 35 #include <arch/drivers/pic.h> … … 79 78 } 80 79 81 /** Return number of pending interrupt */ 82 int pic_get_pending(void) 80 /** Return number of pending interrupts 81 * 82 */ 83 uint8_t pic_get_pending(void) 83 84 { 84 85 if (pic) { 85 int pending;86 uint32_t pending; 86 87 87 88 pending = pic[PIC_PENDING_LOW]; 88 if (pending )89 if (pending != 0) 89 90 return fnzb32(pending); 90 91 91 92 pending = pic[PIC_PENDING_HIGH]; 92 if (pending )93 if (pending != 0) 93 94 return fnzb32(pending) + 32; 94 95 } 95 96 96 return -1;97 return 255; 97 98 } 98 99
Note:
See TracChangeset
for help on using the changeset viewer.
