Rev 173 | Rev 184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 173 | Rev 177 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include <arch/types.h> |
32 | #include <arch/types.h> |
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 | #include <arch/asm.h> |
|
- | 38 | ||
- | 39 | #include <proc/thread.h> |
|
- | 40 | #include <proc/task.h> |
|
37 | 41 | ||
38 | /* |
42 | /* |
39 | * NOTE: |
43 | * NOTE: |
40 | * CPU, THREAD and TASK are not preemption-safe. |
44 | * CPU, THREAD and TASK are not preemption-safe. |
41 | * Provisions must be made to prevent preemption prior |
45 | * Provisions must be made to prevent preemption prior |
Line 56... | Line 60... | ||
56 | thread_t *thread; /* current thread */ |
60 | thread_t *thread; /* current thread */ |
57 | task_t *task; /* current task */ |
61 | task_t *task; /* current task */ |
58 | cpu_t *cpu; /* executing cpu */ |
62 | cpu_t *cpu; /* executing cpu */ |
59 | }; |
63 | }; |
60 | 64 | ||
- | 65 | #define THE ((the_t *)(get_stack_base())) |
|
- | 66 | ||
61 | extern void arch_pre_mm_init(void); |
67 | extern void arch_pre_mm_init(void); |
62 | extern void arch_post_mm_init(void); |
68 | extern void arch_post_mm_init(void); |
63 | extern void arch_late_init(void); |
69 | extern void arch_late_init(void); |
64 | extern void calibrate_delay_loop(void); |
70 | extern void calibrate_delay_loop(void); |
65 | 71 |