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
fee112f9
Commit
fee112f9
authored
Jan 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeAcquireSpinLockRaiseToDpc().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
389b8fc3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
10 deletions
+24
-10
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+0
-9
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+20
-0
wdm.h
include/ddk/wdm.h
+3
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
fee112f9
...
...
@@ -3855,15 +3855,6 @@ void WINAPI KeReleaseInStackQueuedSpinLock( KLOCK_QUEUE_HANDLE *handle )
}
/***********************************************************************
* KeAcquireSpinLockRaiseToDpc (NTOSKRNL.EXE.@)
*/
KIRQL
WINAPI
KeAcquireSpinLockRaiseToDpc
(
KSPIN_LOCK
*
spinlock
)
{
FIXME
(
"stub: %p
\n
"
,
spinlock
);
return
0
;
}
/***********************************************************************
* IoCreateNotificationEvent (NTOSKRNL.EXE.@)
*/
PKEVENT
WINAPI
IoCreateNotificationEvent
(
UNICODE_STRING
*
name
,
HANDLE
*
handle
)
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
fee112f9
...
...
@@ -511,7 +511,7 @@
@ stdcall Ke386SetIoAccessMap(long ptr)
@ stub KeAcquireInterruptSpinLock
@ stub KeAcquireSpinLockAtDpcLevel
@ stdcall -arch=x86_64 KeAcquireSpinLockRaiseToDpc(ptr)
@ stdcall -arch=
arm,arm64,
x86_64 KeAcquireSpinLockRaiseToDpc(ptr)
@ stub KeAddSystemServiceTable
@ stub KeAreApcsDisabled
@ stub KeAttachProcess
...
...
dlls/ntoskrnl.exe/sync.c
View file @
fee112f9
...
...
@@ -384,6 +384,15 @@ void WINAPI KeInitializeSpinLock( KSPIN_LOCK *lock )
}
#ifndef __i386__
static
inline
void
small_pause
(
void
)
{
#ifdef __x86_64__
__asm__
__volatile__
(
"rep;nop"
:
:
:
"memory"
);
#else
__asm__
__volatile__
(
""
:
:
:
"memory"
);
#endif
}
/***********************************************************************
* KeReleaseSpinLock (NTOSKRNL.EXE.@)
*/
...
...
@@ -392,4 +401,15 @@ void WINAPI KeReleaseSpinLock( KSPIN_LOCK *lock, KIRQL irql )
TRACE
(
"lock %p, irql %u.
\n
"
,
lock
,
irql
);
InterlockedExchangePointer
(
(
void
**
)
lock
,
0
);
}
/***********************************************************************
* KeAcquireSpinLockRaiseToDpc (NTOSKRNL.EXE.@)
*/
KIRQL
WINAPI
KeAcquireSpinLockRaiseToDpc
(
KSPIN_LOCK
*
lock
)
{
TRACE
(
"lock %p.
\n
"
,
lock
);
while
(
!
InterlockedCompareExchangePointer
(
(
void
**
)
lock
,
(
void
*
)
1
,
(
void
*
)
0
))
small_pause
();
return
0
;
}
#endif
include/ddk/wdm.h
View file @
fee112f9
...
...
@@ -1421,6 +1421,9 @@ NTSTATUS WINAPI IoWMIRegistrationControl(PDEVICE_OBJECT,ULONG);
#ifdef __i386__
void
WINAPI
KeAcquireSpinLock
(
KSPIN_LOCK
*
,
KIRQL
*
);
#else
#define KeAcquireSpinLock( lock, irql ) *(irql) = KeAcquireSpinLockRaiseToDpc( lock )
KIRQL
WINAPI
KeAcquireSpinLockRaiseToDpc
(
KSPIN_LOCK
*
);
#endif
BOOLEAN
WINAPI
KeCancelTimer
(
KTIMER
*
);
void
WINAPI
KeClearEvent
(
PRKEVENT
);
...
...
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