Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5e73815 in mainline


Ignore:
Timestamp:
2009-07-28T13:28:54Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
ba0aa6f
Parents:
6ac14a70
Message:

Interrupts should be disabled when acquiring answerbox's irq_lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/event.c

    r6ac14a70 r5e73815  
    141141                        IPC_SET_ARG5(call->data, a5);
    142142                       
     143                        ipl_t ipl = interrupts_disable();
    143144                        spinlock_lock(&events[evno].answerbox->irq_lock);
    144145                        list_append(&call->link, &events[evno].answerbox->irq_notifs);
    145146                        spinlock_unlock(&events[evno].answerbox->irq_lock);
     147                        interrupts_restore(ipl);
    146148                       
    147149                        waitq_wakeup(&events[evno].answerbox->wq, WAKEUP_FIRST);
Note: See TracChangeset for help on using the changeset viewer.