Rev 1494 | Rev 1589 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1494 | Rev 1588 | ||
|---|---|---|---|
| Line 133... | Line 133... | ||
| 133 | spinlock_unlock(&tasks_lock); |
133 | spinlock_unlock(&tasks_lock); |
| 134 | interrupts_restore(ipl); |
134 | interrupts_restore(ipl); |
| 135 | return ENOENT; |
135 | return ENOENT; |
| 136 | } |
136 | } |
| 137 | 137 | ||
| 138 | /* |
- | |
| 139 | * TODO: We are currently lacking support for task destroying. |
- | |
| 140 | * Once it is added to the kernel, we must take care to |
- | |
| 141 | * synchronize in a way that prevents race conditions here. |
- | |
| 142 | */ |
- | |
| 143 | - | ||
| 144 | /* Lock the task and release the lock protecting tasks_btree. */ |
138 | /* Lock the task and release the lock protecting tasks_btree. */ |
| 145 | spinlock_lock(&t->lock); |
139 | spinlock_lock(&t->lock); |
| 146 | spinlock_unlock(&tasks_lock); |
140 | spinlock_unlock(&tasks_lock); |
| 147 | 141 | ||
| 148 | rc = ddi_iospace_enable_arch(t, ioaddr, size); |
142 | rc = ddi_iospace_enable_arch(t, ioaddr, size); |