Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b4173d7d
Commit
b4173d7d
authored
Feb 27, 2010
by
Austin English
Committed by
Alexandre Julliard
Mar 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add initial support for OpenBSD to fill_cpu_info.
parent
534398a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
nt.c
dlls/ntdll/nt.c
+12
-0
No files found.
dlls/ntdll/nt.c
View file @
b4173d7d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment