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
da4291df
Commit
da4291df
authored
Jan 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeAcquireSpinLockAtDpcLevel().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a1dfdfaf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+10
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
da4291df
...
...
@@ -510,7 +510,7 @@
@ stub Ke386QueryIoAccessMap
@ stdcall Ke386SetIoAccessMap(long ptr)
@ stub KeAcquireInterruptSpinLock
@ st
ub KeAcquireSpinLockAtDpcLevel
@ st
dcall KeAcquireSpinLockAtDpcLevel(ptr)
@ stdcall -arch=arm,arm64,x86_64 KeAcquireSpinLockRaiseToDpc(ptr)
@ stub KeAddSystemServiceTable
@ stub KeAreApcsDisabled
...
...
dlls/ntoskrnl.exe/sync.c
View file @
da4291df
...
...
@@ -396,6 +396,16 @@ static inline void small_pause(void)
}
/***********************************************************************
* KeAcquireSpinLockAtDpcLevel (NTOSKRNL.EXE.@)
*/
void
WINAPI
KeAcquireSpinLockAtDpcLevel
(
KSPIN_LOCK
*
lock
)
{
TRACE
(
"lock %p.
\n
"
,
lock
);
while
(
!
InterlockedCompareExchangePointer
(
(
void
**
)
lock
,
(
void
*
)
1
,
(
void
*
)
0
))
small_pause
();
}
/***********************************************************************
* KeReleaseSpinLockFromDpcLevel (NTOSKRNL.EXE.@)
*/
void
WINAPI
KeReleaseSpinLockFromDpcLevel
(
KSPIN_LOCK
*
lock
)
...
...
include/ddk/wdm.h
View file @
da4291df
...
...
@@ -1427,6 +1427,7 @@ void WINAPI KeAcquireSpinLock(KSPIN_LOCK*,KIRQL*);
#define KeAcquireSpinLock( lock, irql ) *(irql) = KeAcquireSpinLockRaiseToDpc( lock )
KIRQL
WINAPI
KeAcquireSpinLockRaiseToDpc
(
KSPIN_LOCK
*
);
#endif
void
WINAPI
KeAcquireSpinLockAtDpcLevel
(
KSPIN_LOCK
*
);
BOOLEAN
WINAPI
KeCancelTimer
(
KTIMER
*
);
void
WINAPI
KeClearEvent
(
PRKEVENT
);
NTSTATUS
WINAPI
KeDelayExecutionThread
(
KPROCESSOR_MODE
,
BOOLEAN
,
LARGE_INTEGER
*
);
...
...
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