Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
935a406b
Commit
935a406b
authored
Jan 04, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix data structures for processor affinity on 64-bit.
parent
c0827c7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
cpu.c
dlls/kernel32/cpu.c
+3
-3
winbase.h
include/winbase.h
+1
-1
winnt.h
include/winnt.h
+5
-0
No files found.
dlls/kernel32/cpu.c
View file @
935a406b
...
...
@@ -681,7 +681,7 @@ VOID WINAPI GetSystemInfo(
valSize
=
sizeof
(
int
);
if
(
sysctlbyname
(
"hw.activecpu"
,
&
value
,
&
valSize
,
NULL
,
0
)
==
0
)
cachedsi
.
dwActiveProcessorMask
=
(
1
<<
value
)
-
1
;
cachedsi
.
dwActiveProcessorMask
=
(
(
ULONG_PTR
)
1
<<
value
)
-
1
;
valSize
=
sizeof
(
int
);
if
(
sysctlbyname
(
"hw.cputype"
,
&
cputype
,
&
valSize
,
NULL
,
0
)
==
0
)
...
...
@@ -780,12 +780,12 @@ VOID WINAPI GetSystemInfo(
FIXME
(
"not yet supported on this system
\n
"
);
#endif
if
(
!
cachedsi
.
dwActiveProcessorMask
)
cachedsi
.
dwActiveProcessorMask
=
(
1
<<
cachedsi
.
dwNumberOfProcessors
)
-
1
;
cachedsi
.
dwActiveProcessorMask
=
(
(
ULONG_PTR
)
1
<<
cachedsi
.
dwNumberOfProcessors
)
-
1
;
*
si
=
cachedsi
;
TRACE
(
"<- CPU arch %d, res'd %d, pagesize %d, minappaddr %p, maxappaddr %p,"
" act.cpumask %
08
x, numcpus %d, CPU type %d, allocgran. %d, CPU level %d, CPU rev %d
\n
"
,
" act.cpumask %
l
x, numcpus %d, CPU type %d, allocgran. %d, CPU level %d, CPU rev %d
\n
"
,
si
->
u
.
s
.
wProcessorArchitecture
,
si
->
u
.
s
.
wReserved
,
si
->
dwPageSize
,
si
->
lpMinimumApplicationAddress
,
si
->
lpMaximumApplicationAddress
,
si
->
dwActiveProcessorMask
,
si
->
dwNumberOfProcessors
,
si
->
dwProcessorType
,
...
...
include/winbase.h
View file @
935a406b
...
...
@@ -776,7 +776,7 @@ typedef struct _SYSTEM_INFO
DWORD
dwPageSize
;
LPVOID
lpMinimumApplicationAddress
;
LPVOID
lpMaximumApplicationAddress
;
DWORD
dwActiveProcessorMask
;
DWORD
_PTR
dwActiveProcessorMask
;
DWORD
dwNumberOfProcessors
;
DWORD
dwProcessorType
;
DWORD
dwAllocationGranularity
;
...
...
include/winnt.h
View file @
935a406b
...
...
@@ -540,7 +540,12 @@ typedef DWORD FLONG;
#define PROCESSOR_ARM920 2336
/* 0x920 */
#define PROCESSOR_ARM_7TDMI 70001
#ifdef _WIN64
#define MAXIMUM_PROCESSORS 64
#else
#define MAXIMUM_PROCESSORS 32
#endif
typedef
struct
_MEMORY_BASIC_INFORMATION
{
LPVOID
BaseAddress
;
...
...
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