| 48 | static rt_list_t _traps_nodes = RT_LIST_OBJECT_INIT(_traps_nodes); |
| 49 | |
| 50 | static struct rt_pic_irq *irq2pirq(int irq) |
| 51 | { |
| 52 | struct rt_pic_irq *pirq = RT_NULL; |
| 53 | |
| 54 | if ((irq >= 0) && (irq < MAX_HANDLERS)) |
| 55 | { |
| 56 | pirq = &_pirq_hash[irq]; |
| 57 | |
| 58 | if (pirq->irq < 0) |
| 59 | { |
| 60 | pirq = RT_NULL; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | if (!pirq) |
| 65 | { |
| 66 | LOG_E("irq = %d is invalid", irq); |
| 67 | } |
| 68 | |
| 69 | return pirq; |
| 70 | } |
| 71 | |
| 72 | static void append_pic(struct rt_pic *pic) |
| 73 | { |
no outgoing calls
no test coverage detected