Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4153 | Rev 4263 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include <synch/mutex.h> |
42 | #include <synch/mutex.h> |
43 | #include <synch/waitq.h> |
43 | #include <synch/waitq.h> |
44 | #include <synch/synch.h> |
44 | #include <synch/synch.h> |
45 | #include <ipc/ipc.h> |
45 | #include <ipc/ipc.h> |
46 | #include <ipc/kbox.h> |
46 | #include <ipc/kbox.h> |
- | 47 | #include <ipc/event.h> |
|
47 | #include <errno.h> |
48 | #include <errno.h> |
48 | #include <mm/slab.h> |
49 | #include <mm/slab.h> |
49 | #include <arch.h> |
50 | #include <arch.h> |
50 | #include <proc/task.h> |
51 | #include <proc/task.h> |
51 | #include <memstr.h> |
52 | #include <memstr.h> |
52 | #include <debug.h> |
53 | #include <debug.h> |
53 | - | ||
54 | #include <print.h> |
54 | #include <print.h> |
55 | #include <console/console.h> |
55 | #include <console/console.h> |
56 | #include <proc/thread.h> |
56 | #include <proc/thread.h> |
57 | #include <arch/interrupt.h> |
57 | #include <arch/interrupt.h> |
58 | #include <ipc/irq.h> |
58 | #include <ipc/irq.h> |
Line 524... | Line 524... | ||
524 | 524 | ||
525 | /* Disconnect all our phones ('ipc_phone_hangup') */ |
525 | /* Disconnect all our phones ('ipc_phone_hangup') */ |
526 | for (i = 0; i < IPC_MAX_PHONES; i++) |
526 | for (i = 0; i < IPC_MAX_PHONES; i++) |
527 | ipc_phone_hangup(&TASK->phones[i]); |
527 | ipc_phone_hangup(&TASK->phones[i]); |
528 | 528 | ||
- | 529 | /* Unsubscribe from any event notifications. */ |
|
- | 530 | event_cleanup_answerbox(&TASK->answerbox); |
|
- | 531 | ||
529 | /* Disconnect all connected irqs */ |
532 | /* Disconnect all connected irqs */ |
530 | ipc_irq_cleanup(&TASK->answerbox); |
533 | ipc_irq_cleanup(&TASK->answerbox); |
531 | 534 | ||
532 | /* Disconnect all phones connected to our regular answerbox */ |
535 | /* Disconnect all phones connected to our regular answerbox */ |
533 | ipc_answerbox_slam_phones(&TASK->answerbox, false); |
536 | ipc_answerbox_slam_phones(&TASK->answerbox, false); |