summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gcinfo/gcinfoencoder.cpp2
-rw-r--r--src/vm/gcinfodecoder.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gcinfo/gcinfoencoder.cpp b/src/gcinfo/gcinfoencoder.cpp
index d06e06b6c7..f9d6ebb4a1 100644
--- a/src/gcinfo/gcinfoencoder.cpp
+++ b/src/gcinfo/gcinfoencoder.cpp
@@ -593,8 +593,10 @@ bool GcInfoEncoder::IsAlwaysScratch(GcSlotDesc &slotDesc)
UINT16 PreservedRegMask =
(1 << 3) // rbx
| (1 << 5) // rbp
+#ifndef UNIX_AMD64_ABI
| (1 << 6) // rsi
| (1 << 7) // rdi
+#endif // UNIX_AMD64_ABI
| (1 << 12) // r12
| (1 << 13) // r13
| (1 << 14) // r14
diff --git a/src/vm/gcinfodecoder.cpp b/src/vm/gcinfodecoder.cpp
index a10ab93739..bb7363861d 100644
--- a/src/vm/gcinfodecoder.cpp
+++ b/src/vm/gcinfodecoder.cpp
@@ -1459,8 +1459,10 @@ bool GcInfoDecoder::IsScratchRegister(int regNum, PREGDISPLAY pRD)
UINT16 PreservedRegMask =
(1 << 3) // rbx
| (1 << 5) // rbp
+#ifndef UNIX_AMD64_ABI
| (1 << 6) // rsi
| (1 << 7) // rdi
+#endif // UNIX_AMD64_ABI
| (1 << 12) // r12
| (1 << 13) // r13
| (1 << 14) // r14