Changeset f3fed18 in mainline
- Timestamp:
- 2007-05-09T23:19:09Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b8f11baa
- Parents:
- f169b7b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/cpuid.h
rf169b7b rf3fed18 50 50 } __attribute__ ((packed)); 51 51 52 typedef union cpuid_extended_feature_info 53 { 52 typedef union cpuid_extended_feature_info { 54 53 struct __cpuid_extended_feature_info bits; 55 uint32_t word; 56 }cpuid_extended_feature_info; 57 54 uint32_t word; 55 } cpuid_extended_feature_info; 58 56 59 57 struct __cpuid_feature_info { … … 66 64 } __attribute__ ((packed)); 67 65 68 typedef union cpuid_feature_info 69 { 66 typedef union cpuid_feature_info { 70 67 struct __cpuid_feature_info bits; 71 uint32_t word;72 } cpuid_feature_info;68 uint32_t word; 69 } cpuid_feature_info; 73 70 74 71 … … 101 98 { 102 99 asm volatile ( 103 "movl %4, %%eax\n"104 100 "cpuid\n" 105 101 : "=a" (info->cpuid_eax), "=b" (info->cpuid_ebx), "=c" (info->cpuid_ecx), "=d" (info->cpuid_edx) 106 : " m" (cmd)102 : "a" (cmd) 107 103 ); 108 104 }
Note:
See TracChangeset
for help on using the changeset viewer.