Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
d230fd61
Commit
d230fd61
authored
17 years ago
by
Chris Wulff
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
hal: Added stubs for KfAquireSpinLock, KfReleaseSpinLock, KfLowerIrql, KfRaiseIrql.
parent
8cf7cb32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/hal/Makefile.in
+3
-0
3 additions, 0 deletions
dlls/hal/Makefile.in
dlls/hal/hal.c
+101
-0
101 additions, 0 deletions
dlls/hal/hal.c
dlls/hal/hal.spec
+4
-4
4 additions, 4 deletions
dlls/hal/hal.spec
with
108 additions
and
4 deletions
dlls/hal/Makefile.in
+
3
−
0
View file @
d230fd61
...
...
@@ -5,6 +5,9 @@ VPATH = @srcdir@
MODULE
=
hal.dll
IMPORTS
=
kernel32 ntdll
C_SRCS
=
\
hal.c
@MAKE_DLL_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
This diff is collapsed.
Click to expand it.
dlls/hal/hal.c
0 → 100644
+
101
−
0
View file @
d230fd61
/*
* hal.dll implementation
*
* Copyright (C) 2007 Chris Wulff
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include
"config.h"
#include
"wine/port.h"
#include
<stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include
"ntstatus.h"
#define WIN32_NO_STATUS
#include
"windef.h"
#include
"winternl.h"
#include
"excpt.h"
#include
"ddk/wdm.h"
#include
"wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ntoskrnl
);
#ifdef __i386__
#define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
__ASM_GLOBAL_FUNC( name, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name )
#define DEFINE_FASTCALL2_ENTRYPOINT( name ) \
__ASM_GLOBAL_FUNC( name, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name )
#endif
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
KfAcquireSpinLock
)
KIRQL
WINAPI
__regs_KfAcquireSpinLock
(
PKSPIN_LOCK
SpinLock
)
#else
KIRQL
WINAPI
KfAcquireSpinLock
(
PKSPIN_LOCK
SpinLock
)
#endif
{
FIXME
(
"(%p) stub!
\n
"
,
SpinLock
);
return
(
KIRQL
)
0
;
}
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
KfLowerIrql
)
VOID
WINAPI
__regs_KfLowerIrql
(
KIRQL
NewIrql
)
#else
VOID
WINAPI
KfLowerIrql
(
KIRQL
NewIrql
)
#endif
{
FIXME
(
"(%u) stub!
\n
"
,
NewIrql
);
}
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
KfRaiseIrql
)
KIRQL
WINAPI
__regs_KfRaiseIrql
(
KIRQL
NewIrql
)
#else
KIRQL
WINAPI
KfRaiseIrql
(
KIRQL
NewIrql
)
#endif
{
FIXME
(
"(%u) stub!
\n
"
,
NewIrql
);
return
(
KIRQL
)
0
;
}
#ifdef DEFINE_FASTCALL2_ENTRYPOINT
DEFINE_FASTCALL2_ENTRYPOINT
(
KfReleaseSpinLock
)
VOID
WINAPI
__regs_KfReleaseSpinLock
(
PKSPIN_LOCK
SpinLock
,
KIRQL
NewIrql
)
#else
VOID
WINAPI
KfReleaseSpinLock
(
PKSPIN_LOCK
SpinLock
,
KIRQL
NewIrql
)
#endif
{
FIXME
(
"(%p %u) stub!
\n
"
,
SpinLock
,
NewIrql
);
}
This diff is collapsed.
Click to expand it.
dlls/hal/hal.spec
+
4
−
4
View file @
d230fd61
...
...
@@ -13,10 +13,10 @@
@ stub KeReleaseQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLock
@ stub KeTryToAcquireQueuedSpinLockRaiseToSynch
@ st
ub
KfAcquireSpinLock
@ st
ub
KfLowerIrql
@ st
ub
KfRaiseIrql
@ st
ub
KfReleaseSpinLock
@ st
dcall -norelay
KfAcquireSpinLock
(ptr)
@ st
dcall -norelay
KfLowerIrql
(long)
@ st
dcall -norelay
KfRaiseIrql
()
@ st
dcall -norelay
KfReleaseSpinLock
(ptr long)
@ stub HalAcquireDisplayOwnership
@ stub HalAdjustResourceList
@ stub HalAllProcessorsStarted
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment