Module: wine Branch: master Commit: 2b095beace7b457586bd33b3b1c81df116215193 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b095beace7b457586bd33b3b1...
Author: Mohamed Mediouni mmediouni@gmx.fr Date: Mon Jun 15 19:22:45 2015 +0000
ntdll: Multiply r4 with the word size in ARM for __chkstk.
---
dlls/ntdll/signal_arm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/signal_arm.c b/dlls/ntdll/signal_arm.c index 7625d77..6509046 100644 --- a/dlls/ntdll/signal_arm.c +++ b/dlls/ntdll/signal_arm.c @@ -250,9 +250,10 @@ static inline void restore_fpu( CONTEXT *context, const ucontext_t *sigcontext ) /************************************************************************** * __chkstk (NTDLL.@) * - * Should check if we can decrement SP by the value provided in r4, but we shouldn't need that. + * Incoming r4 contains words to allocate, converting to bytes then return */ -__ASM_GLOBAL_FUNC( __chkstk, "bx lr" ) +__ASM_GLOBAL_FUNC( __chkstk, "lsl r4, r4, #2\n\t" + "bx lr" )
/*********************************************************************** * RtlCaptureContext (NTDLL.@)