Fix build error in ARM64 code (dotnet/coreclr#8407)
authorJonghyun Park <parjong@gmail.com>
Thu, 1 Dec 2016 10:52:25 +0000 (19:52 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 1 Dec 2016 10:52:25 +0000 (11:52 +0100)
CONTEXT struct for ARM64 does not contain X29 field.

Commit migrated from https://github.com/dotnet/coreclr/commit/6aa53dc3703b49dba774f3c1ea1e988a85e69274

src/coreclr/src/pal/src/include/pal/context.h

index 794fe32..92e2d6f 100644 (file)
@@ -485,7 +485,7 @@ inline static DWORD64 CONTEXTGetFP(LPCONTEXT pContext)
 #elif defined(_ARM_)
     return pContext->R7;
 #elif defined(_ARM64_)
-    return pContext->X29;    
+    return pContext->Fp;
 #else
 #error don't know how to get the frame pointer for this architecture
 #endif