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
0b0dbf6a
Commit
0b0dbf6a
authored
Aug 28, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Implement Wow64ProcessPendingCrossProcessItems().
parent
f6dbccca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
0 deletions
+64
-0
syscall.c
dlls/wow64/syscall.c
+62
-0
wow64.spec
dlls/wow64/wow64.spec
+1
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/wow64/syscall.c
View file @
0b0dbf6a
...
...
@@ -1263,6 +1263,68 @@ void WINAPI Wow64PassExceptionToGuest( EXCEPTION_POINTERS *ptrs )
/**********************************************************************
* Wow64ProcessPendingCrossProcessItems (wow64.@)
*/
void
WINAPI
Wow64ProcessPendingCrossProcessItems
(
void
)
{
CROSS_PROCESS_WORK_LIST
*
list
=
(
void
*
)
wow64info
->
CrossProcessWorkList
;
CROSS_PROCESS_WORK_ENTRY
*
entry
;
BOOLEAN
flush
=
FALSE
;
UINT
next
;
if
(
!
list
)
return
;
entry
=
RtlWow64PopAllCrossProcessWorkFromWorkList
(
&
list
->
work_list
,
&
flush
);
if
(
flush
)
{
if
(
pBTCpuNotifyFlushInstructionCache2
)
pBTCpuNotifyFlushInstructionCache2
(
NULL
,
~
0ull
);
while
(
entry
)
{
next
=
entry
->
next
;
RtlWow64PushCrossProcessWorkOntoFreeList
(
&
list
->
free_list
,
entry
);
entry
=
CROSS_PROCESS_LIST_ENTRY
(
&
list
->
work_list
,
next
);
}
return
;
}
while
(
entry
)
{
switch
(
entry
->
id
)
{
case
CrossProcessPreVirtualAlloc
:
/* FIXME */
break
;
case
CrossProcessPostVirtualAlloc
:
if
(
!
pBTCpuNotifyMemoryAlloc
)
break
;
pBTCpuNotifyMemoryAlloc
(
(
void
*
)
entry
->
addr
,
entry
->
size
,
entry
->
args
[
0
],
entry
->
args
[
1
]
);
break
;
case
CrossProcessPreVirtualFree
:
if
(
!
pBTCpuNotifyMemoryFree
)
break
;
pBTCpuNotifyMemoryFree
(
(
void
*
)
entry
->
addr
,
entry
->
size
,
entry
->
args
[
0
]
);
break
;
case
CrossProcessPostVirtualFree
:
/* FIXME */
break
;
case
CrossProcessPreVirtualProtect
:
if
(
!
pBTCpuNotifyMemoryProtect
)
break
;
pBTCpuNotifyMemoryProtect
(
(
void
*
)
entry
->
addr
,
entry
->
size
,
entry
->
args
[
0
]
);
break
;
case
CrossProcessPostVirtualProtect
:
/* FIXME */
break
;
case
CrossProcessFlushCache
:
if
(
!
pBTCpuNotifyFlushInstructionCache2
)
break
;
pBTCpuNotifyFlushInstructionCache2
(
(
void
*
)
entry
->
addr
,
entry
->
size
);
break
;
}
next
=
entry
->
next
;
RtlWow64PushCrossProcessWorkOntoFreeList
(
&
list
->
free_list
,
entry
);
entry
=
CROSS_PROCESS_LIST_ENTRY
(
&
list
->
work_list
,
next
);
}
}
/**********************************************************************
* Wow64RaiseException (wow64.@)
*/
NTSTATUS
WINAPI
Wow64RaiseException
(
int
code
,
EXCEPTION_RECORD
*
rec
)
...
...
dlls/wow64/wow64.spec
View file @
0b0dbf6a
...
...
@@ -16,6 +16,7 @@
@ stdcall Wow64PassExceptionToGuest(ptr)
@ stub Wow64PrepareForDebuggerAttach
@ stdcall Wow64PrepareForException(ptr ptr)
@ stdcall Wow64ProcessPendingCrossProcessItems()
@ stdcall Wow64RaiseException(long ptr)
@ stub Wow64ShallowThunkAllocObjectAttributes32TO64_FNC
@ stub Wow64ShallowThunkAllocSecurityQualityOfService32TO64_FNC
...
...
include/winternl.h
View file @
0b0dbf6a
...
...
@@ -4167,6 +4167,7 @@ void WINAPI Wow64ApcRoutine(ULONG_PTR,ULONG_PTR,ULONG_PTR,CONTEXT*);
NTSTATUS
WINAPI
Wow64KiUserCallbackDispatcher
(
ULONG
,
void
*
,
ULONG
,
void
**
,
ULONG
*
);
void
WINAPI
Wow64PassExceptionToGuest
(
EXCEPTION_POINTERS
*
);
void
WINAPI
Wow64PrepareForException
(
EXCEPTION_RECORD
*
,
CONTEXT
*
);
void
WINAPI
Wow64ProcessPendingCrossProcessItems
(
void
);
NTSTATUS
WINAPI
Wow64RaiseException
(
int
,
EXCEPTION_RECORD
*
);
NTSTATUS
WINAPI
Wow64SystemServiceEx
(
UINT
,
UINT
*
);
...
...
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