Changeset dbe9ff0 in mainline for include/arch.h


Ignore:
Timestamp:
2005-09-01T08:53:06Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9447155
Parents:
75d5721
Message:

Preemption work.
Define PREEMPTION_DISABLED macro.
This macro determines the level of preemptivity (0 = preemption enabled, THE→preemption_disabled = no preemption inside spinlock, 1 = preemption disabled).
Reformulate preemption code in clock.c to consider PREEMPTION_DISABLED.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/arch.h

    r75d5721 rdbe9ff0  
    4040#include <proc/task.h>
    4141
    42 #define CPU             THE->cpu
    43 #define THREAD          THE->thread
    44 #define TASK            THE->task
     42#define CPU                     THE->cpu
     43#define THREAD                  THE->thread
     44#define TASK                    THE->task
     45#define PREEMPTION_DISABLED     THE->preemption_disabled
    4546
    4647#ifndef early_mapping
Note: See TracChangeset for help on using the changeset viewer.