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
d41117b6
Commit
d41117b6
authored
Mar 22, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Allow the CPU backend to override CPU information.
parent
ccd96404
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
syscall.c
dlls/wow64/syscall.c
+2
-1
system.c
dlls/wow64/system.c
+3
-1
wow64_private.h
dlls/wow64/wow64_private.h
+1
-0
No files found.
dlls/wow64/syscall.c
View file @
d41117b6
...
...
@@ -110,7 +110,7 @@ static void (WINAPI *pBTCpuSimulate)(void);
static
NTSTATUS
(
WINAPI
*
pBTCpuResetToConsistentState
)(
EXCEPTION_POINTERS
*
);
static
void
*
(
WINAPI
*
p__wine_get_unix_opcode
)(
void
);
static
void
*
(
WINAPI
*
pKiRaiseUserExceptionDispatcher
)(
void
);
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
)
=
NULL
;
void
*
dummy
=
RtlUnwind
;
...
...
@@ -842,6 +842,7 @@ static DWORD WINAPI process_init( RTL_RUN_ONCE *once, void *param, void **contex
GET_PTR
(
BTCpuResetToConsistentState
);
GET_PTR
(
BTCpuSetContext
);
GET_PTR
(
BTCpuSimulate
);
GET_PTR
(
BTCpuUpdateProcessorInformation
);
GET_PTR
(
__wine_get_unix_opcode
);
module
=
load_64bit_module
(
L"wow64win.dll"
);
...
...
dlls/wow64/system.c
View file @
d41117b6
...
...
@@ -337,7 +337,9 @@ NTSTATUS WINAPI wow64_NtQuerySystemInformation( UINT *args )
case
SystemCpuInformation
:
/* SYSTEM_CPU_INFORMATION */
case
SystemEmulationProcessorInformation
:
/* SYSTEM_CPU_INFORMATION */
return
NtQuerySystemInformation
(
SystemEmulationProcessorInformation
,
ptr
,
len
,
retlen
);
status
=
NtQuerySystemInformation
(
SystemEmulationProcessorInformation
,
ptr
,
len
,
retlen
);
if
(
!
status
&&
pBTCpuUpdateProcessorInformation
)
pBTCpuUpdateProcessorInformation
(
ptr
);
return
status
;
case
SystemBasicInformation
:
/* SYSTEM_BASIC_INFORMATION */
case
SystemEmulationBasicInformation
:
/* SYSTEM_BASIC_INFORMATION */
...
...
dlls/wow64/wow64_private.h
View file @
d41117b6
...
...
@@ -38,6 +38,7 @@ extern ULONG_PTR args_alignment DECLSPEC_HIDDEN;
extern
ULONG_PTR
highest_user_address
DECLSPEC_HIDDEN
;
extern
ULONG_PTR
default_zero_bits
DECLSPEC_HIDDEN
;
extern
SYSTEM_DLL_INIT_BLOCK
*
pLdrSystemDllInitBlock
DECLSPEC_HIDDEN
;
extern
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
)
DECLSPEC_HIDDEN
;
struct
object_attr64
{
...
...
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