https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fec11747bb49ef08388b12...
commit fec11747bb49ef08388b1285fa5d59e62a5413e6 Author: Mohamed Mediouni mmediouni@gmx.fr AuthorDate: Fri May 31 23:42:53 2019 +0200 Commit: Stanislav Motylkov x86corez@gmail.com CommitDate: Sun Apr 26 19:58:53 2020 +0300
[CRT] Implement __chkstk function for ARM (#1595)
Incoming r4 contains the number of dwords to allocate, converting to bytes then return. This makes ReactOS applications compiled for ARM running on true ARM Windows.
Reference: https://github.com/wine-mirror/wine/commit/2b095beace7b457586bd33b3b1c81df11... --- sdk/lib/crt/except/arm/chkstk_asm.s | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/sdk/lib/crt/except/arm/chkstk_asm.s b/sdk/lib/crt/except/arm/chkstk_asm.s index 78e65772ca8..c088149919a 100644 --- a/sdk/lib/crt/except/arm/chkstk_asm.s +++ b/sdk/lib/crt/except/arm/chkstk_asm.s @@ -1,9 +1,12 @@ /* - * COPYRIGHT: BSD - See COPYING.ARM in the top level directory - * PROJECT: ReactOS CRT librariy - * PURPOSE: Implementation of _chkstk and _alloca_probe - * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) - * Yuntian Zhang (yuntian.zh@gmail.com) + * PROJECT: ReactOS CRT library + * LICENSE: BSD - See COPYING.ARM in the top level directory + * PURPOSE: Implementation of _chkstk and _alloca_probe + * COPYRIGHT: Copyright 2014 Timo Kreuzer (timo.kreuzer@reactos.org) + * Copyright 2014 Yuntian Zhang (yuntian.zh@gmail.com) + * Copyright 2019 Mohamed Mediouni (mmediouni@gmx.fr) + * + * REFERENCES: https://github.com/wine-mirror/wine/commit/2b095beace7b457586bd33b3b1c81df11... */
/* INCLUDES ******************************************************************/ @@ -14,7 +17,7 @@ TEXTAREA
LEAF_ENTRY __chkstk - __assertfail + lsl r4, r4, #2 bx lr LEAF_END __chkstk