Subversion Repositories HelenOS-historic

Rev

Rev 94 | Rev 141 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 125
Line 106... Line 106...
106
        cpuid(0, &info);
106
        cpuid(0, &info);
107
 
107
 
108
        /*
108
        /*
109
         * Check for AMD processor.
109
         * Check for AMD processor.
110
         */
110
         */
111
        if (info.cpuid_ebx==AMD_CPUID_EBX &&
111
        if (info.cpuid_ebx==AMD_CPUID_EBX && info.cpuid_ecx==AMD_CPUID_ECX && info.cpuid_edx==AMD_CPUID_EDX) {
112
            info.cpuid_ecx==AMD_CPUID_ECX &&
-
 
113
            info.cpuid_edx==AMD_CPUID_EDX) {
-
 
114
           
-
 
115
            CPU->arch.vendor = VendorAMD;
112
            CPU->arch.vendor = VendorAMD;
116
        }
113
        }
117
 
114
 
118
        /*
115
        /*
119
         * Check for Intel processor.
116
         * Check for Intel processor.
120
         */    
117
         */    
121
        if (info.cpuid_ebx==INTEL_CPUID_EBX &&
118
        if (info.cpuid_ebx==INTEL_CPUID_EBX && info.cpuid_ecx==INTEL_CPUID_ECX && info.cpuid_edx==INTEL_CPUID_EDX) {
122
            info.cpuid_ecx==INTEL_CPUID_ECX &&
-
 
123
            info.cpuid_edx==INTEL_CPUID_EDX) {
-
 
124
 
-
 
125
            CPU->arch.vendor = VendorIntel;
119
            CPU->arch.vendor = VendorIntel;
126
 
-
 
127
        }
120
        }
128
               
121
               
129
        cpuid(1, &info);
122
        cpuid(1, &info);
130
        CPU->arch.family = (info.cpuid_eax>>8)&0xf;
123
        CPU->arch.family = (info.cpuid_eax>>8)&0xf;
131
        CPU->arch.model = (info.cpuid_eax>>4)&0xf;
124
        CPU->arch.model = (info.cpuid_eax>>4)&0xf;