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
5c4612b3
Commit
5c4612b3
authored
Jun 14, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Add appropriate stdcall decorations to assembly functions.
parent
34ac93b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+13
-6
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
5c4612b3
...
...
@@ -66,18 +66,25 @@ struct IrpInstance
#ifdef __i386__
#define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
__ASM_
GLOBAL_FUNC( name
, \
__ASM_
STDCALL_FUNC( name, 4
, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name )
"jmp " __ASM_NAME("__regs_") #name
__ASM_STDCALL(4)
)
#define DEFINE_FASTCALL2_ENTRYPOINT( name ) \
__ASM_
GLOBAL_FUNC( name
, \
__ASM_
STDCALL_FUNC( name, 8
, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name )
"jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8))
#define DEFINE_FASTCALL3_ENTRYPOINT( name ) \
__ASM_STDCALL_FUNC( name, 12, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(12))
#endif
static
inline
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
us
)
...
...
@@ -745,8 +752,8 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
/***********************************************************************
* InterlockedCompareExchange (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL
2
_ENTRYPOINT
DEFINE_FASTCALL
2
_ENTRYPOINT
(
NTOSKRNL_InterlockedCompareExchange
)
#ifdef DEFINE_FASTCALL
3
_ENTRYPOINT
DEFINE_FASTCALL
3
_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
)
...
...
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