cpuid.cc (9473:da05a322fa4d) cpuid.cc (10439:1bd64b294fe4)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 34 unchanged lines hidden (view full) ---

43 VendorAndLargestExtFunc,
44 FamilyModelSteppingBrandFeatures,
45 NameString1,
46 NameString2,
47 NameString3,
48 L1CacheAndTLB,
49 L2L3CacheAndL2TLB,
50 APMInfo,
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 34 unchanged lines hidden (view full) ---

43 VendorAndLargestExtFunc,
44 FamilyModelSteppingBrandFeatures,
45 NameString1,
46 NameString2,
47 NameString3,
48 L1CacheAndTLB,
49 L2L3CacheAndL2TLB,
50 APMInfo,
51 LongModeAddressSize,
51
52 /*
53 * The following are defined by the spec but not yet implemented
54 */
52
53 /*
54 * The following are defined by the spec but not yet implemented
55 */
55/* LongModeAddressSize,
56 // Function 9 is reserved
56/* // Function 9 is reserved
57 SVMInfo = 10,
58 // Functions 11-24 are reserved
59 TLB1GBPageInfo = 25,
60 PerformanceInfo,*/
61
62 NumExtendedCpuidFuncs
63 };
64

--- 60 unchanged lines hidden (view full) ---

125 case L2L3CacheAndL2TLB:
126 result = CpuidResult(0x00000000, 0x42004200,
127 0x00000000, 0x04008140);
128 break;
129 case APMInfo:
130 result = CpuidResult(0x80000018, 0x68747541,
131 0x69746e65, 0x444d4163);
132 break;
57 SVMInfo = 10,
58 // Functions 11-24 are reserved
59 TLB1GBPageInfo = 25,
60 PerformanceInfo,*/
61
62 NumExtendedCpuidFuncs
63 };
64

--- 60 unchanged lines hidden (view full) ---

125 case L2L3CacheAndL2TLB:
126 result = CpuidResult(0x00000000, 0x42004200,
127 0x00000000, 0x04008140);
128 break;
129 case APMInfo:
130 result = CpuidResult(0x80000018, 0x68747541,
131 0x69746e65, 0x444d4163);
132 break;
133/* case LongModeAddressSize:
134 case SVMInfo:
133 case LongModeAddressSize:
134 result = CpuidResult(0x0000ffff, 0x00000000,
135 0x00000000, 0x00000000);
136 break;
137/* case SVMInfo:
135 case TLB1GBPageInfo:
136 case PerformanceInfo:*/
137 default:
138 warn("x86 cpuid: unimplemented function %u", funcNum);
139 return false;
140 }
141 } else if(family == 0x0000) {
142 // The standard functions

--- 25 unchanged lines hidden ---
138 case TLB1GBPageInfo:
139 case PerformanceInfo:*/
140 default:
141 warn("x86 cpuid: unimplemented function %u", funcNum);
142 return false;
143 }
144 } else if(family == 0x0000) {
145 // The standard functions

--- 25 unchanged lines hidden ---