For some CPUID leaves (e.g. %eax=0x00000004), the result depends on the input value of %ecx. Allow this subfunction number to be specified as a parameter to the cpuid() wrapper. The subfunction number is exposed via the ${cpuid/...} settings mechanism using the syntax ${cpuid/<subfunction>.0x40.<register>.<function>} e.g. ${cpuid/0.0x40.0.0x0000000b} ${cpuid/1.0x40.0.0x0000000b} to retrieve the CPU topology information. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
84 |
|
84 |
|
85 |
|
85 |
|
86 |
|
86 |
|
87 |
|
|
|
|
87 |
|
|
88 |
|
88 |
|
89 |
|
89 |
|
90 |
|
90 |
|
|
|
||
125 |
|
125 |
|
126 |
|
126 |
|
127 |
|
127 |
|
128 |
|
|
|
|
128 |
|
|
129 |
|
129 |
|
130 |
|
130 |
|
131 |
|
131 |
|
|
|
||
149 |
|
149 |
|
150 |
|
150 |
|
151 |
|
151 |
|
152 |
|
|
|
|
152 |
|
|
153 |
|
153 |
|
154 |
|
154 |
|
155 |
|
155 |
|
|
|
||
37 |
|
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
|
|
41 |
|
|
|
|
40 |
|
|
|
41 |
|
|
42 |
|
42 |
|
43 |
|
|
|
|
43 |
|
|
|
44 |
|
|
44 |
|
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
|
|
||
50 |
|
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
53 |
|
59 |
|
54 |
|
60 |
|
55 |
|
61 |
|
|
|
||
60 |
|
66 |
|
61 |
|
67 |
|
62 |
|
68 |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
63 |
|
75 |
|
64 |
|
76 |
|
65 |
|
77 |
|
66 |
|
78 |
|
67 |
|
|
|
68 |
|
|
|
|
79 |
|
|
|
80 |
|
|
69 |
|
81 |
|
70 |
|
82 |
|
71 |
|
83 |
|
|
|
||
73 |
|
85 |
|
74 |
|
86 |
|
75 |
|
87 |
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
81 |
|
93 |
|
82 |
|
94 |
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
95 |
|
92 |
|
96 |
|
93 |
|
97 |
|
|
|
||
97 |
|
101 |
|
98 |
|
102 |
|
99 |
|
103 |
|
100 |
|
|
|
|
104 |
|
|
101 |
|
105 |
|
102 |
|
106 |
|
103 |
|
|
|
|
107 |
|
|
104 |
|
108 |
|
105 |
|
|
|
|
109 |
|
|
106 |
|
110 |
|
107 |
|
111 |
|
108 |
|
112 |
|
|
|
||
149 |
|
153 |
|
150 |
|
154 |
|
151 |
|
155 |
|
|
156 |
|
|
152 |
|
157 |
|
153 |
|
158 |
|
154 |
|
159 |
|
|
|
||
160 |
|
165 |
|
161 |
|
166 |
|
162 |
|
167 |
|
163 |
|
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
164 |
|
175 |
|
165 |
|
176 |
|
166 |
|
177 |
|
|
|
||
171 |
|
182 |
|
172 |
|
183 |
|
173 |
|
184 |
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
178 |
|
189 |
|
179 |
|
190 |
|
180 |
|
191 |
|
181 |
|
192 |
|
182 |
|
193 |
|
183 |
|
194 |
|
184 |
|
|
|
|
195 |
|
|
185 |
|
196 |
|
186 |
|
197 |
|
187 |
|
198 |
|
|
|
||
237 |
|
248 |
|
238 |
|
249 |
|
239 |
|
250 |
|
240 |
|
|
|
|
251 |
|
|
241 |
|
252 |
|
242 |
|
253 |
|
243 |
|
254 |
|
|
|
||
248 |
|
259 |
|
249 |
|
260 |
|
250 |
|
261 |
|
251 |
|
|
|
|
262 |
|
|
252 |
|
263 |
|
253 |
|
264 |
|
254 |
|
265 |
|
|
|
||
132 |
|
132 |
|
133 |
|
133 |
|
134 |
|
134 |
|
135 |
|
|
|
|
135 |
|
|
136 |
|
136 |
|
137 |
|
137 |
|
138 |
|
138 |
|
|
|
||
170 |
|
170 |
|
171 |
|
171 |
|
172 |
|
172 |
|
173 |
|
|
|
|
173 |
|
|
174 |
|
174 |
|
175 |
|
175 |
|
176 |
|
176 |
|
|
|
||
194 |
|
194 |
|
195 |
|
195 |
|
196 |
|
196 |
|
197 |
|
|
|
|
197 |
|
|
198 |
|
198 |
|
199 |
|
199 |
|
200 |
|
200 |
|
|
|
||
253 |
|
253 |
|
254 |
|
254 |
|
255 |
|
255 |
|
256 |
|
|
|
|
256 |
|
|
257 |
|
257 |
|
258 |
|
258 |
|
259 |
|
|
|
|
259 |
|
|
260 |
|
260 |
|
261 |
|
261 |
|
262 |
|
262 |
|
|
|
||
735 |
|
735 |
|
736 |
|
736 |
|
737 |
|
737 |
|
738 |
|
|
|
|
738 |
|
|
739 |
|
739 |
|
740 |
|
740 |
|
741 |
|
741 |
|
|
|
||
66 |
|
66 |
|
67 |
|
67 |
|
68 |
|
68 |
|
69 |
|
|
|
|
69 |
|
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
72 |
|
73 |
|
73 |
|
74 |
|
|
|
|
74 |
|
|
75 |
|
75 |
|
76 |
|
76 |
|
77 |
|
77 |
|
|
|
||
101 |
|
101 |
|
102 |
|
102 |
|
103 |
|
103 |
|
104 |
|
|
|
|
104 |
|
|
105 |
|
105 |
|
106 |
|
106 |
|
107 |
|
107 |
|
|
|
||
66 |
|
66 |
|
67 |
|
67 |
|
68 |
|
68 |
|
69 |
|
|
|
|
69 |
|
|
|
70 |
|
|
70 |
|
71 |
|
71 |
|
72 |
|
72 |
|
73 |
|
73 |
|
74 |
|
74 |
|
75 |
|
75 |
|
76 |
|
76 |
|
|
|
77 |
|
|
|
|
77 |
|
|
|
78 |
|
|
78 |
|
79 |
|
79 |
|
80 |
|
80 |
|
81 |
|
81 |
|
|
|
|
82 |
|
|
82 |
|
83 |
|
83 |
|
84 |
|
84 |
|
85 |
|