File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ extern int force_personality32;
256
256
instruction set this CPU supports. This could be done in user space,
257
257
but it's not easy, and we've already done it here. */
258
258
259
- #define ELF_HWCAP (boot_cpu_data.x86_capability[0 ])
259
+ #define ELF_HWCAP (boot_cpu_data.x86_capability[CPUID_1_EDX ])
260
260
261
261
/* This yields a string that ld.so will use to load implementation
262
262
specific libraries for optimization. This is more specific in
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ static inline void __init construct_default_ISA_mptable(int mpc_default_type)
408
408
processor .cpuflag = CPU_ENABLED ;
409
409
processor .cpufeature = (boot_cpu_data .x86 << 8 ) |
410
410
(boot_cpu_data .x86_model << 4 ) | boot_cpu_data .x86_mask ;
411
- processor .featureflag = boot_cpu_data .x86_capability [0 ];
411
+ processor .featureflag = boot_cpu_data .x86_capability [CPUID_1_EDX ];
412
412
processor .reserved [0 ] = 0 ;
413
413
processor .reserved [1 ] = 0 ;
414
414
for (i = 0 ; i < 2 ; i ++ ) {
Original file line number Diff line number Diff line change @@ -1535,7 +1535,7 @@ __init void lguest_init(void)
1535
1535
*/
1536
1536
cpu_detect (& new_cpu_data );
1537
1537
/* head.S usually sets up the first capability word, so do it here. */
1538
- new_cpu_data .x86_capability [0 ] = cpuid_edx (1 );
1538
+ new_cpu_data .x86_capability [CPUID_1_EDX ] = cpuid_edx (1 );
1539
1539
1540
1540
/* Math is always hard! */
1541
1541
set_cpu_cap (& new_cpu_data , X86_FEATURE_FPU );
Original file line number Diff line number Diff line change @@ -1654,7 +1654,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
1654
1654
cpu_detect (& new_cpu_data );
1655
1655
set_cpu_cap (& new_cpu_data , X86_FEATURE_FPU );
1656
1656
new_cpu_data .wp_works_ok = 1 ;
1657
- new_cpu_data .x86_capability [0 ] = cpuid_edx (1 );
1657
+ new_cpu_data .x86_capability [CPUID_1_EDX ] = cpuid_edx (1 );
1658
1658
#endif
1659
1659
1660
1660
if (xen_start_info -> mod_start ) {
You can’t perform that action at this time.
0 commit comments