[x86/Linux] Disable USE_CALLER_SP_IN_FUNCLET in EH (#11247)
authorJonghyun Park <parjong@gmail.com>
Thu, 27 Apr 2017 14:50:39 +0000 (23:50 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 27 Apr 2017 14:50:39 +0000 (07:50 -0700)
src/vm/exceptionhandling.cpp

index 7030ef5..abea194 100644 (file)
 #define VSD_STUB_CAN_THROW_AV
 #endif // _TARGET_ARM_ || _TARGET_X86_
 
+#if defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
+// ARM/ARM64 uses Caller-SP to locate PSPSym in the funclet frame.
+#define USE_CALLER_SP_IN_FUNCLET
+#endif // _TARGET_ARM_ || _TARGET_ARM64_
+
 #if defined(_TARGET_ARM_) || defined(_TARGET_ARM64_) || defined(_TARGET_X86_)
 #define ADJUST_PC_UNWOUND_TO_CALL
 #define STACK_RANGE_BOUNDS_ARE_CALLER_SP
 #define USE_FUNCLET_CALL_HELPER
-#define USE_CALLER_SP_IN_FUNCLET
 // For ARM/ARM64, EstablisherFrame is Caller-SP (SP just before executing call instruction).
 // This has been confirmed by AaronGi from the kernel team for Windows.
 //