Changeset 3422fb6 in mainline for kernel/generic/src/ipc/irq.c
- Timestamp:
- 2017-09-03T19:23:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5d0143
- Parents:
- 9306cd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
r9306cd7 r3422fb6 347 347 irq_spinlock_lock(&irq_uspace_hash_table_lock, true); 348 348 irq_spinlock_lock(&irq->lock, false); 349 irq_spinlock_lock(&box->irq_lock, false);350 349 351 350 cap->type = CAP_TYPE_IRQ; 352 351 hash_table_insert(&irq_uspace_hash_table, key, &irq->link); 353 list_append(&irq->notif_cfg.link, &box->irq_list); 354 355 irq_spinlock_unlock(&box->irq_lock, false); 352 356 353 irq_spinlock_unlock(&irq->lock, false); 357 354 irq_spinlock_unlock(&irq_uspace_hash_table_lock, true); … … 383 380 irq_spinlock_lock(&irq_uspace_hash_table_lock, true); 384 381 irq_spinlock_lock(&irq->lock, false); 385 irq_spinlock_lock(&box->irq_lock, false);386 382 387 383 assert(irq->notif_cfg.answerbox == box); 388 389 /* Remove the IRQ from the answerbox's list. */390 list_remove(&irq->notif_cfg.link);391 384 392 385 /* Remove the IRQ from the uspace IRQ hash table. */ 393 386 hash_table_remove_item(&irq_uspace_hash_table, &irq->link); 394 387 395 irq_spinlock_unlock(&box->irq_lock, false);396 388 /* irq->lock unlocked by the hash table remove_callback */ 397 389 irq_spinlock_unlock(&irq_uspace_hash_table_lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.