From aa55603b731fee304ce949cdcaa6572907c99604 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 2 Apr 2012 12:45:43 +0200 Subject: [PATCH] ntdll: Move the _chkstk implementation to signal_i386.c. --- dlls/ntdll/rtl.c | 31 ------------------------------- dlls/ntdll/signal_i386.c | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 31 deletions(-) diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c index 19702515447..34869e7e1e2 100644 --- a/dlls/ntdll/rtl.c +++ b/dlls/ntdll/rtl.c @@ -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.@] */ diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c index e83999431dd..67633445953 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -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) *