Changeset bb68433 in mainline for generic/src/proc/task.c
- Timestamp:
- 2006-02-08T22:58:06Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e4e532
- Parents:
- 85dc2e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/task.c
r85dc2e7 rbb68433 65 65 task_t *ta; 66 66 67 ta = (task_t *) malloc(sizeof(task_t) );68 if (ta) { 69 70 71 72 73 74 75 76 77 78 79 } 67 ta = (task_t *) malloc(sizeof(task_t), 0); 68 69 spinlock_initialize(&ta->lock, "task_ta_lock"); 70 list_initialize(&ta->th_head); 71 list_initialize(&ta->tasks_link); 72 ta->as = as; 73 74 ipl = interrupts_disable(); 75 spinlock_lock(&tasks_lock); 76 list_append(&ta->tasks_link, &tasks_head); 77 spinlock_unlock(&tasks_lock); 78 interrupts_restore(ipl); 79 80 80 return ta; 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.