Subversion Repositories HelenOS-historic

Rev

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

Rev 32 Rev 118
Line 33... Line 33...
33
#include <typedefs.h>
33
#include <typedefs.h>
34
 
34
 
35
#include <cpu.h>
35
#include <cpu.h>
36
#include <arch/cpu.h>
36
#include <arch/cpu.h>
37
 
37
 
-
 
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
 */
38
#define CPU     (&cpus[CPU_ID_ARCH])
45
#define CPU     (&cpus[CPU_ID_ARCH])
39
#define THREAD      (cpu_private_data[CPU_ID_ARCH].thread)
46
#define THREAD      (cpu_private_data[CPU_ID_ARCH].thread)
40
#define TASK        (cpu_private_data[CPU_ID_ARCH].task)
47
#define TASK        (cpu_private_data[CPU_ID_ARCH].task)
41
 
48
 
42
extern void arch_pre_mm_init(void);
49
extern void arch_pre_mm_init(void);