Rev 3964 | Rev 4254 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3964 | Rev 3968 | ||
---|---|---|---|
Line 158... | Line 158... | ||
158 | * @param irq Pointer to the IRQ structure to be initialized. |
158 | * @param irq Pointer to the IRQ structure to be initialized. |
159 | * |
159 | * |
160 | */ |
160 | */ |
161 | void irq_initialize(irq_t *irq) |
161 | void irq_initialize(irq_t *irq) |
162 | { |
162 | { |
163 | memsetb(irq, 0, sizeof(irq_t)); |
163 | memsetb(irq, sizeof(irq_t), 0); |
164 | link_initialize(&irq->link); |
164 | link_initialize(&irq->link); |
165 | spinlock_initialize(&irq->lock, "irq.lock"); |
165 | spinlock_initialize(&irq->lock, "irq.lock"); |
166 | link_initialize(&irq->notif_cfg.link); |
166 | link_initialize(&irq->notif_cfg.link); |
167 | irq->inr = -1; |
167 | irq->inr = -1; |
168 | irq->devno = -1; |
168 | irq->devno = -1; |