Changeset b60a22c in mainline for include/arch.h


Ignore:
Timestamp:
2005-06-16T18:47:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
992bbb97
Parents:
87cd61f
Message:

Replace confusing comment in scheduler.c.

Add warning/explanatory comment to arch.h saying that CPU, THREAD and TASK macros are preemption-unsafe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/arch.h

    r87cd61f rb60a22c  
    3636#include <arch/cpu.h>
    3737
     38/*
     39 * NOTE:
     40 * CPU, THREAD and TASK are not preemption-safe.
     41 * Provisions must be made to prevent preemption prior
     42 * to using these macros. Simple cpu_priority_high()
     43 * call will suffice.
     44 */
    3845#define CPU             (&cpus[CPU_ID_ARCH])
    3946#define THREAD          (cpu_private_data[CPU_ID_ARCH].thread)
Note: See TracChangeset for help on using the changeset viewer.