Commit 621c06a0 authored by Alexandre Julliard's avatar Alexandre Julliard

rpcrt4: Make inline asm compatible with Thumb-2.

parent 37c24eab
...@@ -1144,7 +1144,6 @@ __ASM_GLOBAL_FUNC( call_server_func, ...@@ -1144,7 +1144,6 @@ __ASM_GLOBAL_FUNC( call_server_func,
#elif defined __arm__ #elif defined __arm__
LONG_PTR __cdecl call_server_func(SERVER_ROUTINE func, unsigned char *args, unsigned int stack_size); LONG_PTR __cdecl call_server_func(SERVER_ROUTINE func, unsigned char *args, unsigned int stack_size);
__ASM_GLOBAL_FUNC( call_server_func, __ASM_GLOBAL_FUNC( call_server_func,
".arm\n\t"
"push {r4, r5, LR}\n\t" "push {r4, r5, LR}\n\t"
"mov r4, r0\n\t" "mov r4, r0\n\t"
"mov r5, SP\n\t" "mov r5, SP\n\t"
...@@ -1153,6 +1152,7 @@ __ASM_GLOBAL_FUNC( call_server_func, ...@@ -1153,6 +1152,7 @@ __ASM_GLOBAL_FUNC( call_server_func,
"beq 5f\n\t" "beq 5f\n\t"
"sub SP, SP, r2\n\t" "sub SP, SP, r2\n\t"
"tst r3, #1\n\t" "tst r3, #1\n\t"
"it eq\n\t"
"subeq SP, SP, #4\n\t" "subeq SP, SP, #4\n\t"
"1:\tsub r2, r2, #4\n\t" "1:\tsub r2, r2, #4\n\t"
"ldr r0, [r1, r2]\n\t" "ldr r0, [r1, r2]\n\t"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment