Skip to content

Commit

Permalink
ARM64: unwind code (#8290)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfKornmannEnvision authored and jkotas committed Sep 13, 2020
1 parent 07bf6d3 commit ad25495
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 102 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/src/nativeaot/Runtime/unix/UnixContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ bool GetUnwindProcInfo(PCODE ip, unw_proc_info_t *procInfo)
#elif HOST_ARM
((uint32_t*)(unwContext.data))[15] = ip;
#elif HOST_ARM64
((uint32_t*)(unwContext.data))[32] = ip;
unwContext.data[32] = ip;
#elif HOST_WASM
ASSERT(false);
#elif HOST_X86
Expand Down Expand Up @@ -618,7 +618,7 @@ bool FindProcInfo(UIntNative controlPC, UIntNative* startAddress, UIntNative* ls

assert((procInfo.start_ip <= controlPC) && (controlPC < procInfo.end_ip));

#if defined(HOST_ARM) || defined(HOST_ARM64)
#if defined(HOST_ARM)
// libunwind fills by reference not by value for ARM
*lsda = *((UIntNative *)procInfo.lsda);
#else
Expand Down
Loading

0 comments on commit ad25495

Please sign in to comment.