- Timestamp:
- 2005-04-10T16:36:45Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23c0c08
- Parents:
- 43114c5
- Location:
- include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/arch.h
r43114c5 r8262010 34 34 35 35 #include <cpu.h> 36 #include <arch/cpu.h> 36 37 37 #define CPU (the->cpu) 38 #define THREAD (the->thread) 39 #define TASK (the->task) 40 41 extern cpu_private_page_t *the; 38 #define CPU (cpu_private_data[CPU_ID_ARCH].cpu) 39 #define THREAD (cpu_private_data[CPU_ID_ARCH].thread) 40 #define TASK (cpu_private_data[CPU_ID_ARCH].task) 42 41 43 42 extern void arch_init(void); -
include/cpu.h
r43114c5 r8262010 69 69 }; 70 70 71 struct cpu_private_page { 71 /* 72 * read/write by associated CPU 73 * read only by other CPUs 74 */ 75 struct cpu_private_data { 72 76 cpu_t *cpu; 73 77 thread_t *thread; … … 75 79 }; 76 80 81 extern cpu_private_data_t *cpu_private_data; 77 82 extern cpu_t *cpus; 78 83 -
include/typedefs.h
r43114c5 r8262010 31 31 32 32 typedef struct config config_t; 33 typedef struct cpu_private_ page cpu_private_page_t;33 typedef struct cpu_private_data cpu_private_data_t; 34 34 typedef struct cpu_info cpu_info_t; 35 35
Note:
See TracChangeset
for help on using the changeset viewer.
