Subversion Repositories HelenOS-historic

Rev

Rev 184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 184 Rev 192
Line 37... Line 37...
37
#include <arch/asm.h> 
37
#include <arch/asm.h> 
38
 
38
 
39
#include <proc/thread.h>
39
#include <proc/thread.h>
40
#include <proc/task.h>
40
#include <proc/task.h>
41
 
41
 
42
/*
-
 
43
 * NOTE:
-
 
44
 * CPU, THREAD and TASK are not preemption-safe.
-
 
45
 * Provisions must be made to prevent preemption prior
-
 
46
 * to using these macros. Simple cpu_priority_high()
-
 
47
 * call will suffice.
-
 
48
 */
-
 
49
#define CPU     (&cpus[CPU_ID_ARCH])
42
#define CPU     THE->cpu
50
#define THREAD      (cpu_private_data[CPU_ID_ARCH].thread)
43
#define THREAD      THE->thread
51
#define TASK        (cpu_private_data[CPU_ID_ARCH].task)
44
#define TASK        THE->task
52
 
45
 
53
/*
46
/*
54
 * For each possible kernel stack, structure
47
 * For each possible kernel stack, structure
55
 * of the following type will be placed at
48
 * of the following type will be placed at
56
 * the bottom of the stack.
49
 * the bottom of the stack.