ntdll: Add appropriate stdcall decorations to assembly functions.
This commit is contained in:
parent
d303d9dc29
commit
e65ebee63f
|
@ -357,7 +357,7 @@ static inline NTSTATUS access_resource( HMODULE hmod, const IMAGE_RESOURCE_DATA_
|
|||
* "call access_resource" instruction being there.
|
||||
*/
|
||||
#ifdef __i386__
|
||||
__ASM_GLOBAL_FUNC( LdrAccessResource,
|
||||
__ASM_STDCALL_FUNC( LdrAccessResource, 16,
|
||||
"pushl %ebp\n\t"
|
||||
"movl %esp, %ebp\n\t"
|
||||
"subl $4,%esp\n\t"
|
||||
|
|
|
@ -405,7 +405,7 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor )
|
|||
* Glorified "enter xxxx".
|
||||
*/
|
||||
#ifdef __i386__
|
||||
__ASM_GLOBAL_FUNC( _chkstk,
|
||||
__ASM_STDCALL_FUNC( _chkstk, 0,
|
||||
"negl %eax\n\t"
|
||||
"addl %esp,%eax\n\t"
|
||||
"xchgl %esp,%eax\n\t"
|
||||
|
@ -420,7 +420,7 @@ __ASM_GLOBAL_FUNC( _chkstk,
|
|||
* Glorified "enter xxxx".
|
||||
*/
|
||||
#ifdef __i386__
|
||||
__ASM_GLOBAL_FUNC( _alloca_probe,
|
||||
__ASM_STDCALL_FUNC( _alloca_probe, 0,
|
||||
"negl %eax\n\t"
|
||||
"addl %esp,%eax\n\t"
|
||||
"xchgl %esp,%eax\n\t"
|
||||
|
|
|
@ -2267,17 +2267,17 @@ DEFINE_REGS_ENTRYPOINT( RtlRaiseException, 1 )
|
|||
/**********************************************************************
|
||||
* DbgBreakPoint (NTDLL.@)
|
||||
*/
|
||||
__ASM_GLOBAL_FUNC( DbgBreakPoint, "int $3; ret")
|
||||
__ASM_STDCALL_FUNC( DbgBreakPoint, 0, "int $3; ret")
|
||||
|
||||
/**********************************************************************
|
||||
* DbgUserBreakPoint (NTDLL.@)
|
||||
*/
|
||||
__ASM_GLOBAL_FUNC( DbgUserBreakPoint, "int $3; ret")
|
||||
__ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret")
|
||||
|
||||
/**********************************************************************
|
||||
* 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 )
|
|||
/**********************************************************************
|
||||
* DbgBreakPoint (NTDLL.@)
|
||||
*/
|
||||
__ASM_GLOBAL_FUNC( DbgBreakPoint, "int $3; ret")
|
||||
__ASM_STDCALL_FUNC( DbgBreakPoint, 0, "int $3; ret")
|
||||
|
||||
/**********************************************************************
|
||||
* DbgUserBreakPoint (NTDLL.@)
|
||||
*/
|
||||
__ASM_GLOBAL_FUNC( DbgUserBreakPoint, "int $3; ret")
|
||||
__ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret")
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
Loading…
Reference in New Issue