Commit e65ebee6 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Add appropriate stdcall decorations to assembly functions.

parent d303d9dc
...@@ -357,7 +357,7 @@ static inline NTSTATUS access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ ...@@ -357,7 +357,7 @@ static inline NTSTATUS access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_
* "call access_resource" instruction being there. * "call access_resource" instruction being there.
*/ */
#ifdef __i386__ #ifdef __i386__
__ASM_GLOBAL_FUNC( LdrAccessResource, __ASM_STDCALL_FUNC( LdrAccessResource, 16,
"pushl %ebp\n\t" "pushl %ebp\n\t"
"movl %esp, %ebp\n\t" "movl %esp, %ebp\n\t"
"subl $4,%esp\n\t" "subl $4,%esp\n\t"
......
...@@ -405,7 +405,7 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor ) ...@@ -405,7 +405,7 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor )
* Glorified "enter xxxx". * Glorified "enter xxxx".
*/ */
#ifdef __i386__ #ifdef __i386__
__ASM_GLOBAL_FUNC( _chkstk, __ASM_STDCALL_FUNC( _chkstk, 0,
"negl %eax\n\t" "negl %eax\n\t"
"addl %esp,%eax\n\t" "addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t" "xchgl %esp,%eax\n\t"
...@@ -420,7 +420,7 @@ __ASM_GLOBAL_FUNC( _chkstk, ...@@ -420,7 +420,7 @@ __ASM_GLOBAL_FUNC( _chkstk,
* Glorified "enter xxxx". * Glorified "enter xxxx".
*/ */
#ifdef __i386__ #ifdef __i386__
__ASM_GLOBAL_FUNC( _alloca_probe, __ASM_STDCALL_FUNC( _alloca_probe, 0,
"negl %eax\n\t" "negl %eax\n\t"
"addl %esp,%eax\n\t" "addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t" "xchgl %esp,%eax\n\t"
......
...@@ -2267,17 +2267,17 @@ DEFINE_REGS_ENTRYPOINT( RtlRaiseException, 1 ) ...@@ -2267,17 +2267,17 @@ DEFINE_REGS_ENTRYPOINT( RtlRaiseException, 1 )
/********************************************************************** /**********************************************************************
* DbgBreakPoint (NTDLL.@) * DbgBreakPoint (NTDLL.@)
*/ */
__ASM_GLOBAL_FUNC( DbgBreakPoint, "int $3; ret") __ASM_STDCALL_FUNC( DbgBreakPoint, 0, "int $3; ret")
/********************************************************************** /**********************************************************************
* DbgUserBreakPoint (NTDLL.@) * DbgUserBreakPoint (NTDLL.@)
*/ */
__ASM_GLOBAL_FUNC( DbgUserBreakPoint, "int $3; ret") __ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret")
/********************************************************************** /**********************************************************************
* NtCurrentTeb (NTDLL.@) * NtCurrentTeb (NTDLL.@)
*/ */
__ASM_GLOBAL_FUNC( NtCurrentTeb, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" ) __ASM_STDCALL_FUNC( NtCurrentTeb, 0, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
/********************************************************************** /**********************************************************************
......
...@@ -1668,11 +1668,11 @@ void __wine_enter_vm86( CONTEXT *context ) ...@@ -1668,11 +1668,11 @@ void __wine_enter_vm86( CONTEXT *context )
/********************************************************************** /**********************************************************************
* DbgBreakPoint (NTDLL.@) * DbgBreakPoint (NTDLL.@)
*/ */
__ASM_GLOBAL_FUNC( DbgBreakPoint, "int $3; ret") __ASM_STDCALL_FUNC( DbgBreakPoint, 0, "int $3; ret")
/********************************************************************** /**********************************************************************
* DbgUserBreakPoint (NTDLL.@) * DbgUserBreakPoint (NTDLL.@)
*/ */
__ASM_GLOBAL_FUNC( DbgUserBreakPoint, "int $3; ret") __ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret")
#endif /* __x86_64__ */ #endif /* __x86_64__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment