Alexandre Julliard : rpcrt4: Make inline asm compatible with Thumb-2.

Alexandre Julliard julliard at winehq.org
Tue Jan 19 15:44:00 CST 2021


Module: wine
Branch: master
Commit: 621c06a082a5507885f2c98815f411718415a53b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=621c06a082a5507885f2c98815f411718415a53b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 18 11:44:10 2021 +0100

rpcrt4: Make inline asm compatible with Thumb-2.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rpcrt4/ndr_stubless.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c
index 43debcb91df..3e0c824c733 100644
--- a/dlls/rpcrt4/ndr_stubless.c
+++ b/dlls/rpcrt4/ndr_stubless.c
@@ -1144,7 +1144,6 @@ __ASM_GLOBAL_FUNC( call_server_func,
 #elif defined __arm__
 LONG_PTR __cdecl call_server_func(SERVER_ROUTINE func, unsigned char *args, unsigned int stack_size);
 __ASM_GLOBAL_FUNC( call_server_func,
-                   ".arm\n\t"
                    "push {r4, r5, LR}\n\t"
                    "mov r4, r0\n\t"
                    "mov r5, SP\n\t"
@@ -1153,6 +1152,7 @@ __ASM_GLOBAL_FUNC( call_server_func,
                    "beq 5f\n\t"
                    "sub SP, SP, r2\n\t"
                    "tst r3, #1\n\t"
+                   "it eq\n\t"
                    "subeq SP, SP, #4\n\t"
                    "1:\tsub r2, r2, #4\n\t"
                    "ldr r0, [r1, r2]\n\t"




More information about the wine-cvs mailing list