Skip to content

Commit

Permalink
movs r7, dotnet#119
Browse files Browse the repository at this point in the history
  • Loading branch information
franksinankaya committed Apr 3, 2020
1 parent 23aa9a4 commit 8a8da77
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pal/src/arch/arm/callsignalhandlerwrapper.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ LOCAL_LABEL(SignalHandlerWorkerReturn\Alignment):
LOCAL_LABEL(SignalHandlerWorkerReturn\Alignment):
// Following instruction are needed to say gdb that this frame is SIGTRAMP_FRAME
// and it can restore all registers from stack
movs r7, #119

push {r1}
SAVE_CPSR r5, r6
movs r1, #119
asrs r7, r7, #16
lsls r7, r7, #16
orrs r7, r7, r1
RESTORE_CPSR r5, r6
pop {r1}

svc 0
#endif
NESTED_END CallSignalHandlerWrapper\Alignment, _TEXT
Expand Down

0 comments on commit 8a8da77

Please sign in to comment.