ntdll: Fill ActiveProcessorCount field in _KUSER_SHARED_DATA.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0def647b6e
commit
1306bd941b
|
@ -528,6 +528,9 @@ static void test_user_shared_data(void)
|
|||
ok(user_shared_data->ProcessorFeatures[PF_RDTSC_INSTRUCTION_AVAILABLE] /* Supported since Pentium CPUs. */,
|
||||
"_RDTSC not available.\n");
|
||||
#endif
|
||||
ok(user_shared_data->ActiveProcessorCount == NtCurrentTeb()->Peb->NumberOfProcessors
|
||||
|| broken(!user_shared_data->ActiveProcessorCount) /* before Win7 */,
|
||||
"Got unexpected ActiveProcessorCount %u.\n", user_shared_data->ActiveProcessorCount);
|
||||
}
|
||||
|
||||
START_TEST(virtual)
|
||||
|
|
|
@ -238,6 +238,7 @@ static void fill_user_shared_data( struct _KUSER_SHARED_DATA *data )
|
|||
features[PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE] = !!(sci.FeatureSet & CPU_FEATURE_ARM_V8_CRYPTO);
|
||||
break;
|
||||
}
|
||||
data->ActiveProcessorCount = NtCurrentTeb()->Peb->NumberOfProcessors;
|
||||
}
|
||||
|
||||
HANDLE user_shared_data_init_done(void)
|
||||
|
|
Loading…
Reference in New Issue