Changeset 1066041 in mainline for kernel/generic/include/arch.h
- Timestamp:
- 2012-07-11T07:58:03Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 935e28c
- Parents:
- b68ae24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/arch.h
rb68ae24 r1066041 36 36 #define KERN_ARCH_H_ 37 37 38 #include <arch/arch.h> 39 #include <proc/thread.h> 40 #include <proc/task.h> 41 #include <mm/as.h> 38 #include <arch/arch.h> /* arch_pre_main() */ 39 #include <arch/asm.h> /* get_stack_base() */ 40 42 41 43 42 /* … … 49 48 #define THE ((the_t * )(get_stack_base())) 50 49 51 #define CPU THE->cpu52 #define THREAD THE->thread53 #define TASK THE->task54 #define AS THE->as55 #define PREEMPTION_DISABLED (0 != THE->preemption_disabled)56 #define PREEMPTION_ENABLED (0 == THE->preemption_disabled)57 50 #define MAGIC UINT32_C(0xfacefeed) 58 51 … … 63 56 ((THE->task) ? (THE->task->container) : (DEFAULT_CONTAINER)) 64 57 58 /* Fwd decl. to avoid include hell. */ 59 struct thread; 60 struct task; 61 struct cpu; 62 struct as; 63 65 64 /** 66 65 * For each possible kernel stack, structure … … 69 68 */ 70 69 typedef struct { 71 size_t preemption _disabled; /**< Preemption disabled counter. */72 thread_t *thread;/**< Current thread. */73 task_t *task;/**< Current task. */74 cpu_t *cpu;/**< Executing cpu. */75 as_t *as;/**< Current address space. */76 uint32_t magic; 70 size_t preemption; /**< Preemption disabled counter and flag. */ 71 struct thread *thread; /**< Current thread. */ 72 struct task *task; /**< Current task. */ 73 struct cpu *cpu; /**< Executing cpu. */ 74 struct as *as; /**< Current address space. */ 75 uint32_t magic; /**< Magic value */ 77 76 } the_t; 78 77 … … 92 91 extern void *arch_construct_function(fncptr_t *, void *, void *); 93 92 93 94 94 #endif 95 95
Note:
See TracChangeset
for help on using the changeset viewer.