Changeset 4874c2d in mainline for kernel/generic/src/ipc/irq.c


Ignore:
Timestamp:
2006-10-17T20:32:35Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b14e35f2
Parents:
8513ad7
Message:

Do not copy notification config out of the IRQ structure.
Add the notify member, that toggles notifications on and off instead.
This is good for preventing other tasks from registering the notification
while the notification config is stored outside the IRQ structure.
It should also help to implement the cleanup code.

File:
1 edited

Legend:

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

    r8513ad7 r4874c2d  
    177177        if (irq) {
    178178                if (irq->notif_cfg.answerbox == box) {
    179                         code_free(irq->notif_cfg.code);
     179                        irq->notif_cfg.notify = false;
     180                        irq->notif_cfg.answerbox = NULL;
    180181                        irq->notif_cfg.code = NULL;
    181                         irq->notif_cfg.answerbox = NULL;
    182182                        irq->notif_cfg.method = 0;
    183183                        irq->notif_cfg.counter = 0;
     184                        code_free(irq->notif_cfg.code);
    184185                        spinlock_unlock(&irq->lock);
    185186                }
     
    227228        }
    228229       
     230        irq->notif_cfg.notify = true;
    229231        irq->notif_cfg.answerbox = box;
    230232        irq->notif_cfg.method = method;
Note: See TracChangeset for help on using the changeset viewer.