From c8f92d26a9d57b59219446ee6ddc93a28f3903ca Mon Sep 17 00:00:00 2001 From: jean Date: Thu, 1 Feb 2001 16:37:08 +0000 Subject: [PATCH] changes in alloca because gcc push only ebp at begin of function svn path=/trunk/; revision=1590 --- reactos/lib/crtdll/stdlib/malloc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/lib/crtdll/stdlib/malloc.c b/reactos/lib/crtdll/stdlib/malloc.c index 207828e2346..c9bbefa6d34 100644 --- a/reactos/lib/crtdll/stdlib/malloc.c +++ b/reactos/lib/crtdll/stdlib/malloc.c @@ -38,8 +38,7 @@ void *alloca(size_t s) __asm__ __volatile__( "mov %0, %%edx \n" - "popl %%ebx \n" - "popl %%esi \n" + "popl %%ebp \n" "leave \n" "popl %%ecx \n" "subl %%edx, %%esp \n" @@ -71,8 +70,7 @@ void *_alloca(size_t s) __asm__ __volatile__( "mov %0, %%edx \n" - "popl %%ebx \n" - "popl %%esi \n" + "popl %%ebp \n" "leave \n" "popl %%ecx \n" "subl %%edx, %%esp \n" @@ -86,4 +84,4 @@ void *_alloca(size_t s) return NULL; -} \ No newline at end of file +}