Commit 9014dae8 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

ntdll: Return from Thumb to ARM mode after assembling raise_func_trampoline_thumb.

Without it, Raspbian gcc thinks the next function (raise_func_trampoline_arm) is in Thumb and will create its own trampoline to to execute it as Thumb (bad). Signed-off-by: 's avatarMikołaj Zalewski <mikolaj@zalewski.pl> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 12a9547e
......@@ -524,7 +524,8 @@ extern void raise_func_trampoline_thumb( EXCEPTION_RECORD *rec, CONTEXT *context
__ASM_GLOBAL_FUNC( raise_func_trampoline_thumb,
".thumb\n\t"
"bx r2\n\t"
"bkpt")
"bkpt\n\t"
".arm")
extern void raise_func_trampoline_arm( EXCEPTION_RECORD *rec, CONTEXT *context, void *func );
__ASM_GLOBAL_FUNC( raise_func_trampoline_arm,
......
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