Rev 1888 | Rev 1944 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1888 | Rev 1928 | ||
|---|---|---|---|
| Line 78... | Line 78... | ||
| 78 | int pic_get_pending(void) |
78 | int pic_get_pending(void) |
| 79 | { |
79 | { |
| 80 | int pending; |
80 | int pending; |
| 81 | 81 | ||
| 82 | pending = pic[PIC_PENDING_LOW]; |
82 | pending = pic[PIC_PENDING_LOW]; |
| 83 | if (pending) { |
83 | if (pending) |
| 84 | return fnzb32(pending); |
84 | return fnzb32(pending); |
| 85 | } |
85 | |
| 86 | pending = pic[PIC_PENDING_HIGH]; |
86 | pending = pic[PIC_PENDING_HIGH]; |
| 87 | if (pending) { |
87 | if (pending) |
| 88 | return fnzb32(pending) + 32; |
88 | return fnzb32(pending) + 32; |
| 89 | } |
89 | |
| 90 | return -1; |
90 | return -1; |
| 91 | } |
91 | } |
| 92 | 92 | ||
| 93 | /** @} |
93 | /** @} |
| 94 | */ |
94 | */ |