Changeset 88169d9 in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-06-07T00:34:09Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
977649b
Parents:
590cb380
Message:

Move comment.

Do TLB shootdown also when allocating new ASID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r590cb380 r88169d9  
    5656#endif
    5757
     58/** Spinlock protecting the tasks_btree B+tree. */
    5859SPINLOCK_INITIALIZE(tasks_lock);
     60
     61/** B+tree of active tasks.
     62 *
     63 * The task is guaranteed to exist after it was found in the tasks_btree as long as:
     64 * @li the tasks_lock is held,
     65 * @li the task's lock is held when task's lock is acquired before releasing tasks_lock or
     66 * @li the task's refcount is grater than 0
     67 *
     68 */
    5969btree_t tasks_btree;
     70
    6071static task_id_t task_counter = 0;
    6172
     
    239250 * The tasks_lock must be already held by the caller of this function
    240251 * and interrupts must be disabled.
    241  *
    242  * The task is guaranteed to exist after it was found in the tasks_btree as long as:
    243  * @li the tasks_lock is held,
    244  * @li the task's lock is held when task's lock is acquired before releasing tasks_lock or
    245  * @li the task's refcount is grater than 0
    246252 *
    247253 * @param id Task ID.
Note: See TracChangeset for help on using the changeset viewer.