ntdll: Add initial support for OpenBSD to fill_cpu_info.

This commit is contained in:
Austin English 2010-02-27 22:07:10 -06:00 committed by Alexandre Julliard
parent 534398a57e
commit b4173d7d40
1 changed files with 12 additions and 0 deletions

View File

@ -1152,6 +1152,18 @@ void fill_cpu_info(void)
get_cpuinfo( &cached_sci );
NtCurrentTeb()->Peb->NumberOfProcessors = num;
}
#elif defined (__OpenBSD__)
{
int mib[2], num;
size_t len;
mib[0] = CTL_HW;
mib[1] = HW_NCPU;
len = sizeof(num);
num = sysctl(mib, 2, &num, &len, NULL, 0);
NtCurrentTeb()->Peb->NumberOfProcessors = num;
}
#elif defined (__APPLE__)
{
size_t valSize;