summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRama Krishnan Raghupathy <ramarag@microsoft.com>2016-04-07 19:40:30 -0700
committerRama Krishnan Raghupathy <ramarag@microsoft.com>2016-04-08 18:48:13 -0700
commitdf01dac9db7757bc3bee4c2c8a50157a3e7da097 (patch)
tree489fec9cc6bb0137547b25aeaff2824ea6400021
parent367952fc99132d58d5b9f1d891c5edd6b0a6e7e3 (diff)
downloadcoreclr-df01dac9db7757bc3bee4c2c8a50157a3e7da097.tar.gz
coreclr-df01dac9db7757bc3bee4c2c8a50157a3e7da097.tar.bz2
coreclr-df01dac9db7757bc3bee4c2c8a50157a3e7da097.zip
[Arm64]:Fixing the Logic of ResolveWorkerChainLookupAsmStub
-rw-r--r--src/vm/arm64/asmhelpers.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vm/arm64/asmhelpers.asm b/src/vm/arm64/asmhelpers.asm
index a2b4948a64..a12a484d6a 100644
--- a/src/vm/arm64/asmhelpers.asm
+++ b/src/vm/arm64/asmhelpers.asm
@@ -1104,6 +1104,7 @@ FaultingExceptionFrame_FrameOffset SETA SIZEOF__GSCookie
; On Exit (to ResolveWorkerAsmStub):
; x11 contains the address of the indirection and the flags in the low two bits.
; x12 contains our contract (DispatchToken)
+; x16,x17 will be trashed
;
GBLA BACKPATCH_FLAG ; two low bit flags used by ResolveWorkerAsmStub
GBLA PROMOTE_CHAIN_FLAG ; two low bit flags used by ResolveWorkerAsmStub
@@ -1121,12 +1122,11 @@ MainLoop
cmp x9, #0
beq Fail
- ldr x9, [x9, #0]
- cmp x9, x13 ; compare our MT with the one in the ResolveCacheElem
+ ldp x16, x17, [x9]
+ cmp x16, x13 ; compare our MT with the one in the ResolveCacheElem
bne MainLoop
- ldr x9, [x9, #8]
- cmp x8, x12 ; compare our DispatchToken with one in the ResolveCacheElem
+ cmp x17, x12 ; compare our DispatchToken with one in the ResolveCacheElem
bne MainLoop
Success