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
7f3b1daa
Commit
7f3b1daa
authored
Apr 25, 2008
by
Alexander Morozov
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Change calling conventions for Interlocked* functions.
parent
02df8a3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
5 deletions
+75
-5
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+70
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+5
-5
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
7f3b1daa
...
...
@@ -427,6 +427,76 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
/***********************************************************************
* InterlockedCompareExchange (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL2_ENTRYPOINT
DEFINE_FASTCALL2_ENTRYPOINT
(
NTOSKRNL_InterlockedCompareExchange
)
LONG
WINAPI
__regs_NTOSKRNL_InterlockedCompareExchange
(
LONG
volatile
*
dest
,
LONG
xchg
,
LONG
compare
)
#else
LONG
WINAPI
NTOSKRNL_InterlockedCompareExchange
(
LONG
volatile
*
dest
,
LONG
xchg
,
LONG
compare
)
#endif
{
return
InterlockedCompareExchange
(
dest
,
xchg
,
compare
);
}
/***********************************************************************
* InterlockedDecrement (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
NTOSKRNL_InterlockedDecrement
)
LONG
WINAPI
__regs_NTOSKRNL_InterlockedDecrement
(
LONG
volatile
*
dest
)
#else
LONG
WINAPI
NTOSKRNL_InterlockedDecrement
(
LONG
volatile
*
dest
)
#endif
{
return
InterlockedDecrement
(
dest
);
}
/***********************************************************************
* InterlockedExchange (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL2_ENTRYPOINT
DEFINE_FASTCALL2_ENTRYPOINT
(
NTOSKRNL_InterlockedExchange
)
LONG
WINAPI
__regs_NTOSKRNL_InterlockedExchange
(
LONG
volatile
*
dest
,
LONG
val
)
#else
LONG
WINAPI
NTOSKRNL_InterlockedExchange
(
LONG
volatile
*
dest
,
LONG
val
)
#endif
{
return
InterlockedExchange
(
dest
,
val
);
}
/***********************************************************************
* InterlockedExchangeAdd (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL2_ENTRYPOINT
DEFINE_FASTCALL2_ENTRYPOINT
(
NTOSKRNL_InterlockedExchangeAdd
)
LONG
WINAPI
__regs_NTOSKRNL_InterlockedExchangeAdd
(
LONG
volatile
*
dest
,
LONG
incr
)
#else
LONG
WINAPI
NTOSKRNL_InterlockedExchangeAdd
(
LONG
volatile
*
dest
,
LONG
incr
)
#endif
{
return
InterlockedExchangeAdd
(
dest
,
incr
);
}
/***********************************************************************
* InterlockedIncrement (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
NTOSKRNL_InterlockedIncrement
)
LONG
WINAPI
__regs_NTOSKRNL_InterlockedIncrement
(
LONG
volatile
*
dest
)
#else
LONG
WINAPI
NTOSKRNL_InterlockedIncrement
(
LONG
volatile
*
dest
)
#endif
{
return
InterlockedIncrement
(
dest
);
}
/***********************************************************************
* ExAllocatePool (NTOSKRNL.EXE.@)
*/
PVOID
WINAPI
ExAllocatePool
(
POOL_TYPE
type
,
SIZE_T
size
)
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
7f3b1daa
...
...
@@ -28,11 +28,11 @@
@ stub Exfi386InterlockedExchangeUlong
@ stub Exfi386InterlockedIncrementLong
@ stub HalExamineMBR
@ stdcall
InterlockedCompareExchange(ptr long long) kernel32.
InterlockedCompareExchange
@ stdcall
InterlockedDecrement(ptr) kernel32.
InterlockedDecrement
@ stdcall
InterlockedExchange(ptr long) kernel32.
InterlockedExchange
@ stdcall
InterlockedExchangeAdd(ptr long ) kernel32.
InterlockedExchangeAdd
@ stdcall
InterlockedIncrement(ptr) kernel32.
InterlockedIncrement
@ stdcall
-norelay InterlockedCompareExchange(ptr long long) NTOSKRNL_
InterlockedCompareExchange
@ stdcall
-norelay InterlockedDecrement(ptr) NTOSKRNL_
InterlockedDecrement
@ stdcall
-norelay InterlockedExchange(ptr long) NTOSKRNL_
InterlockedExchange
@ stdcall
-norelay InterlockedExchangeAdd(ptr long) NTOSKRNL_
InterlockedExchangeAdd
@ stdcall
-norelay InterlockedIncrement(ptr) NTOSKRNL_
InterlockedIncrement
@ stdcall InterlockedPopEntrySList(ptr) kernel32.InterlockedPopEntrySList
@ stdcall InterlockedPushEntrySList(ptr ptr) kernel32.InterlockedPushEntrySList
@ stub IoAssignDriveLetters
...
...
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