Commit aa55603b authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Move the _chkstk implementation to signal_i386.c.

parent 62b9c26b
...@@ -405,37 +405,6 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor ) ...@@ -405,37 +405,6 @@ RtlDeleteSecurityObject( PSECURITY_DESCRIPTOR *ObjectDescriptor )
return STATUS_NOT_IMPLEMENTED; 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.@] * RtlInitializeGenericTable [NTDLL.@]
*/ */
......
...@@ -2573,6 +2573,29 @@ __ASM_STDCALL_FUNC( DbgUserBreakPoint, 0, "int $3; ret") ...@@ -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" ) __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) * EXC_CallHandler (internal)
* *
......
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