ntdll: Move the _chkstk implementation to signal_i386.c.

This commit is contained in:
Alexandre Julliard 2012-04-02 12:45:43 +02:00
parent 62b9c26bb5
commit aa55603b73
2 changed files with 23 additions and 31 deletions

View File

@ -405,37 +405,6 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor )
return STATUS_NOT_IMPLEMENTED;
}
/**************************************************************************
* _chkstk [NTDLL.@]
*
* Glorified "enter xxxx".
*/
#ifdef __i386__
__ASM_STDCALL_FUNC( _chkstk, 0,
"negl %eax\n\t"
"addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t"
"movl 0(%eax),%eax\n\t" /* copy return address from old location */
"movl %eax,0(%esp)\n\t"
"ret" )
#endif
/**************************************************************************
* _alloca_probe [NTDLL.@]
*
* Glorified "enter xxxx".
*/
#ifdef __i386__
__ASM_STDCALL_FUNC( _alloca_probe, 0,
"negl %eax\n\t"
"addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t"
"movl 0(%eax),%eax\n\t" /* copy return address from old location */
"movl %eax,0(%esp)\n\t"
"ret" )
#endif
/******************************************************************************
* RtlInitializeGenericTable [NTDLL.@]
*/

View File

@ -2573,6 +2573,29 @@ __ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret")
__ASM_STDCALL_FUNC( NtCurrentTeb, 0, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
/**************************************************************************
* _chkstk (NTDLL.@)
*/
__ASM_STDCALL_FUNC( _chkstk, 0,
"negl %eax\n\t"
"addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t"
"movl 0(%eax),%eax\n\t" /* copy return address from old location */
"movl %eax,0(%esp)\n\t"
"ret" )
/**************************************************************************
* _alloca_probe (NTDLL.@)
*/
__ASM_STDCALL_FUNC( _alloca_probe, 0,
"negl %eax\n\t"
"addl %esp,%eax\n\t"
"xchgl %esp,%eax\n\t"
"movl 0(%eax),%eax\n\t" /* copy return address from old location */
"movl %eax,0(%esp)\n\t"
"ret" )
/**********************************************************************
* EXC_CallHandler (internal)
*