Changeset 4365d10 in mainline


Ignore:
Timestamp:
2007-04-18T19:10:26Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc85fb9
Parents:
2e915f2
Message:

Document and assert proper usage of THREAD_FLAG_WIRED.
Original patch by Jan Hudecek.

Location:
kernel/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/thread.h

    r2e915f2 r4365d10  
    5454/* Thread flags */
    5555
    56 /** Thread cannot be migrated to another CPU. */
     56/** Thread cannot be migrated to another CPU.
     57 *
     58 * When using this flag, the caller must set cpu in the thread_t
     59 * structure manually before calling thread_ready (even on uniprocessor).
     60 */
    5761#define THREAD_FLAG_WIRED       (1 << 0)
    5862/** Thread was migrated to another CPU and has not run yet. */
  • kernel/generic/src/proc/thread.c

    r2e915f2 r4365d10  
    239239        cpu = CPU;
    240240        if (t->flags & THREAD_FLAG_WIRED) {
     241                ASSERT(t->cpu != NULL);
    241242                cpu = t->cpu;
    242243        }
Note: See TracChangeset for help on using the changeset viewer.