Subversion Repositories HelenOS-historic

Rev

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

Rev 221 Rev 391
Line 34... Line 34...
34
 
34
 
35
#include <cpu.h>
35
#include <cpu.h>
36
#include <arch/cpu.h>
36
#include <arch/cpu.h>
37
#include <arch/asm.h> 
37
#include <arch/asm.h> 
38
 
38
 
39
#include <proc/thread.h>
-
 
40
#include <proc/task.h>
-
 
41
 
-
 
42
#define CPU         THE->cpu
39
#define CPU         THE->cpu
43
#define THREAD          THE->thread
40
#define THREAD          THE->thread
44
#define TASK            THE->task
41
#define TASK            THE->task
-
 
42
#define VM          THE->vm
45
#define PREEMPTION_DISABLED THE->preemption_disabled
43
#define PREEMPTION_DISABLED THE->preemption_disabled
46
 
44
 
47
#ifndef early_mapping
45
#ifndef early_mapping
48
#define early_mapping(stack, size)
46
#define early_mapping(stack, size)
49
#endif /* early_mapping */
47
#endif /* early_mapping */
Line 56... Line 54...
56
struct the {
54
struct the {
57
    int preemption_disabled;
55
    int preemption_disabled;
58
    thread_t *thread;       /* current thread */
56
    thread_t *thread;       /* current thread */
59
    task_t *task;           /* current task */
57
    task_t *task;           /* current task */
60
    cpu_t *cpu;         /* executing cpu */
58
    cpu_t *cpu;         /* executing cpu */
-
 
59
    vm_t *vm;           /* current vm */
61
};
60
};
62
 
61
 
63
#define THE     ((the_t *)(get_stack_base()))   
62
#define THE     ((the_t *)(get_stack_base()))   
64
 
63
 
65
extern void the_initialize(the_t *the);
64
extern void the_initialize(the_t *the);