Changes in kernel/generic/src/proc/task.c [abf6c01:ac9e79d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rabf6c01 rac9e79d 64 64 IRQ_SPINLOCK_INITIALIZE(tasks_lock); 65 65 66 /** Ordered dictionary of active tasks by task ID. 67 * 68 * Members are task_t structures. 66 /** Ordered dictionary of active tasks. 69 67 * 70 68 * The task is guaranteed to exist after it was found in the @c tasks … … 199 197 task_t *task_create(as_t *as, const char *name) 200 198 { 201 task_t *task = (task_t *) slab_alloc(task_cache, FRAME_ATOMIC);202 if ( !task)199 task_t *task = (task_t *) slab_alloc(task_cache, 0); 200 if (task == NULL) { 203 201 return NULL; 202 } 204 203 205 204 task_create_arch(task); … … 284 283 285 284 /* 285 * Free up dynamically allocated state. 286 */ 287 futex_task_deinit(task); 288 289 /* 286 290 * Drop our reference to the address space. 287 291 */ … … 627 631 { 628 632 task_kill_self(notify); 629 unreachable(); 633 634 /* Unreachable */ 635 return EOK; 630 636 } 631 637
Note:
See TracChangeset
for help on using the changeset viewer.