Changeset f429331 in mainline
- Timestamp:
- 2007-01-21T18:52:11Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da1f9dc
- Parents:
- 8dbc18c
- Location:
- kernel
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/cpu.h
r8dbc18c rf429331 58 58 #include <arch/pm.h> 59 59 60 struct cpu_arch{60 typedef struct { 61 61 int vendor; 62 62 int family; … … 66 66 67 67 count_t iomapver_copy; /** Copy of TASK's I/O Permission bitmap generation count. */ 68 } ;68 } cpu_arch_t; 69 69 70 70 struct star_msr { -
kernel/arch/amd64/include/cpuid.h
r8dbc18c rf429331 47 47 #include <arch/types.h> 48 48 49 struct cpu_info{49 typedef struct { 50 50 uint32_t cpuid_eax; 51 51 uint32_t cpuid_ebx; 52 52 uint32_t cpuid_ecx; 53 53 uint32_t cpuid_edx; 54 } __attribute__ ((packed)) ;54 } __attribute__ ((packed)) cpu_info_t; 55 55 56 56 extern int has_cpuid(void); -
kernel/arch/amd64/src/amd64.c
r8dbc18c rf429331 104 104 void arch_pre_mm_init(void) 105 105 { 106 struct cpu_infocpuid_s;106 cpu_info_t cpuid_s; 107 107 108 108 cpuid(AMD_CPUID_EXTENDED,&cpuid_s); -
kernel/arch/ia32/include/cpu.h
r8dbc18c rf429331 43 43 #define EFLAGS_RF (1 << 16) 44 44 45 struct cpu_arch{45 typedef struct { 46 46 int vendor; 47 47 int family; … … 51 51 52 52 count_t iomapver_copy; /** Copy of TASK's I/O Permission bitmap generation count. */ 53 } ;53 } cpu_arch_t; 54 54 55 55 -
kernel/arch/ia32/include/cpuid.h
r8dbc18c rf429331 38 38 #include <arch/types.h> 39 39 40 struct cpu_info{40 typedef struct { 41 41 uint32_t cpuid_eax; 42 42 uint32_t cpuid_ebx; 43 43 uint32_t cpuid_ecx; 44 44 uint32_t cpuid_edx; 45 } __attribute__ ((packed)) ;45 } __attribute__ ((packed)) cpu_info_t; 46 46 47 47 struct __cpuid_extended_feature_info { … … 98 98 } 99 99 100 static inline void cpuid(uint32_t cmd, struct cpu_info*info)100 static inline void cpuid(uint32_t cmd, cpu_info_t *info) 101 101 { 102 102 __asm__ volatile ( -
kernel/arch/ia64/include/cpu.h
r8dbc18c rf429331 43 43 #define FAMILY_ITANIUM2 0x1f 44 44 45 struct cpu_arch{45 typedef struct { 46 46 uint64_t cpuid0; 47 47 uint64_t cpuid1; 48 48 cpuid3_t cpuid3; 49 } ;49 } cpu_arch_t; 50 50 51 51 /** Read CPUID register. -
kernel/arch/mips32/include/cpu.h
r8dbc18c rf429331 38 38 #include <arch/types.h> 39 39 40 struct cpu_arch{40 typedef struct { 41 41 uint32_t imp_num; 42 42 uint32_t rev_num; 43 } ;43 } cpu_arch_t; 44 44 45 45 #endif -
kernel/arch/ppc32/include/cpu.h
r8dbc18c rf429331 38 38 #include <typedefs.h> 39 39 40 struct cpu_arch{40 typedef struct { 41 41 int version; 42 42 int revision; 43 } ;43 } cpu_arch_t; 44 44 45 45 #endif -
kernel/arch/ppc32/include/cpuid.h
r8dbc18c rf429331 38 38 #include <arch/types.h> 39 39 40 struct cpu_info{40 typedef struct { 41 41 uint16_t version; 42 42 uint16_t revision; 43 } __attribute__ ((packed)) ;43 } __attribute__ ((packed)) cpu_info_t; 44 44 45 static inline void cpu_version( struct cpu_info*info)45 static inline void cpu_version(cpu_info_t *info) 46 46 { 47 47 asm volatile ( -
kernel/arch/ppc64/include/cpu.h
r8dbc18c rf429331 38 38 #include <typedefs.h> 39 39 40 struct cpu_arch{40 typedef struct { 41 41 int version; 42 42 int revision; 43 } ;43 } cpu_arch_t; 44 44 45 45 #endif -
kernel/arch/ppc64/include/cpuid.h
r8dbc18c rf429331 38 38 #include <arch/types.h> 39 39 40 struct cpu_info{40 typedef struct { 41 41 uint16_t version; 42 42 uint16_t revision; 43 } __attribute__ ((packed)) ;43 } __attribute__ ((packed)) cpu_info_t; 44 44 45 static inline void cpu_version( struct cpu_info*info)45 static inline void cpu_version(cpu_info_t *info) 46 46 { 47 47 asm volatile ( -
kernel/arch/sparc64/include/cpu.h
r8dbc18c rf429331 52 52 #define IMPL_SPARC64V 0x5 53 53 54 struct cpu_arch{54 typedef struct { 55 55 uint32_t mid; /**< Processor ID as read from UPA_CONFIG. */ 56 56 ver_reg_t ver; 57 57 uint32_t clock_frequency; /**< Processor frequency in Hz. */ 58 58 uint64_t next_tick_cmpr; /**< Next clock interrupt should be 59 * generated when the TICK register 60 * matches this value. 61 */ 62 }; 59 generated when the TICK register 60 matches this value. */ 61 } cpu_arch_t; 63 62 64 63 #endif -
kernel/generic/include/cpu.h
r8dbc18c rf429331 53 53 * There is one structure like this for every processor. 54 54 */ 55 struct cpu{55 typedef struct { 56 56 SPINLOCK_DECLARE(lock); 57 57 … … 92 92 */ 93 93 uint8_t *stack; 94 } ;94 } cpu_t; 95 95 96 96 extern cpu_t *cpus; -
kernel/generic/include/time/timeout.h
r8dbc18c rf429331 37 37 38 38 #include <arch/types.h> 39 #include < typedefs.h>39 #include <cpu.h> 40 40 #include <synch/spinlock.h> 41 41 #include <adt/list.h> -
kernel/generic/include/typedefs.h
r8dbc18c rf429331 48 48 typedef unsigned long context_id_t; 49 49 50 typedef struct cpu_info cpu_info_t;51 52 typedef struct cpu cpu_t;53 typedef struct cpu_arch cpu_arch_t;54 50 typedef struct task task_t; 55 51 typedef enum state state_t;
Note:
See TracChangeset
for help on using the changeset viewer.