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
119b9c70
Commit
119b9c70
authored
Jan 28, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal: Implement plain queued spinlock functions on top of DPC-level ones.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
10dcc10a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
hal.c
dlls/hal/hal.c
+31
-0
hal.spec
dlls/hal/hal.spec
+2
-2
No files found.
dlls/hal/hal.c
View file @
119b9c70
...
...
@@ -49,6 +49,21 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8))
extern
void
*
WINAPI
call_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
call_fastcall_func1
,
8
,
"popl %ecx
\n\t
"
"popl %eax
\n\t
"
"xchgl (%esp),%ecx
\n\t
"
"jmp *%eax"
);
extern
void
*
WINAPI
call_fastcall_func2
(
void
*
func
,
const
void
*
a
,
const
void
*
b
);
__ASM_STDCALL_FUNC
(
call_fastcall_func2
,
12
,
"popl %edx
\n\t
"
"popl %eax
\n\t
"
"popl %ecx
\n\t
"
"xchgl (%esp),%edx
\n\t
"
"jmp *%eax"
);
DEFINE_FASTCALL1_ENTRYPOINT
(
ExAcquireFastMutex
)
VOID
WINAPI
DECLSPEC_HIDDEN
__regs_ExAcquireFastMutex
(
PFAST_MUTEX
FastMutex
)
{
...
...
@@ -94,6 +109,22 @@ void WINAPI KeReleaseSpinLock( KSPIN_LOCK *lock, KIRQL irql )
TRACE
(
"lock %p, irql %u.
\n
"
,
lock
,
irql
);
KeReleaseSpinLockFromDpcLevel
(
lock
);
}
extern
void
WINAPI
KeAcquireInStackQueuedSpinLockAtDpcLevel
(
KSPIN_LOCK
*
,
KLOCK_QUEUE_HANDLE
*
);
DEFINE_FASTCALL2_ENTRYPOINT
(
KeAcquireInStackQueuedSpinLock
)
void
WINAPI
DECLSPEC_HIDDEN
__regs_KeAcquireInStackQueuedSpinLock
(
KSPIN_LOCK
*
lock
,
KLOCK_QUEUE_HANDLE
*
queue
)
{
call_fastcall_func2
(
KeAcquireInStackQueuedSpinLockAtDpcLevel
,
lock
,
queue
);
}
extern
void
WINAPI
KeReleaseInStackQueuedSpinLockFromDpcLevel
(
KLOCK_QUEUE_HANDLE
*
);
DEFINE_FASTCALL1_ENTRYPOINT
(
KeReleaseInStackQueuedSpinLock
)
void
WINAPI
DECLSPEC_HIDDEN
__regs_KeReleaseInStackQueuedSpinLock
(
KLOCK_QUEUE_HANDLE
*
queue
)
{
call_fastcall_func1
(
KeReleaseInStackQueuedSpinLockFromDpcLevel
,
queue
);
}
#endif
/* __i386__ */
#if defined(__i386__) || defined(__arm__) || defined(__aarch64__)
...
...
dlls/hal/hal.spec
View file @
119b9c70
...
...
@@ -4,12 +4,12 @@
@ stub HalClearSoftwareInterrupt
@ stub HalRequestSoftwareInterrupt
@ stub HalSystemVectorDispatchEntry
@ stdcall -
norelay KeAcquireInStackQueuedSpinLock(ptr ptr) ntoskrnl.exe.KeAcquireInStackQueuedSpinLock
@ stdcall -
arch=i386 -norelay KeAcquireInStackQueuedSpinLock(ptr ptr)
@ stub KeAcquireInStackQueuedSpinLockRaiseToSynch
@ stub KeAcquireQueuedSpinLock
@ stub KeAcquireQueuedSpinLockRaiseToSynch
@ stub KeAcquireSpinLockRaiseToSynch
@ stdcall -
norelay KeReleaseInStackQueuedSpinLock(ptr) ntoskrnl.exe.KeReleaseInStackQueuedSpinLock
@ stdcall -
arch=i386 -norelay KeReleaseInStackQueuedSpinLock(ptr)
@ stub KeReleaseQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLockRaiseToSynch
...
...
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