diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-10-27 02:04:25 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-10-27 02:04:25 +0300 |
commit | 0dcd4a7eb993e5c8d8a962a2fe3a6f013ec037ca (patch) | |
tree | f571f0512f1671b85c50757b9f3c693bfd8471d4 /src/Native | |
parent | 434ee9f926b86c36b9e919592ad3cdd5a9b8e81f (diff) |
CR feedback
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/Runtime/unix/unixasmmacrosamd64.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Native/Runtime/unix/unixasmmacrosamd64.inc b/src/Native/Runtime/unix/unixasmmacrosamd64.inc index 928441176..d94fe2d8c 100644 --- a/src/Native/Runtime/unix/unixasmmacrosamd64.inc +++ b/src/Native/Runtime/unix/unixasmmacrosamd64.inc @@ -319,9 +319,10 @@ DEFAULT_FRAME_SAVE_FLAGS = PTFF_SAVE_ALL_PRESERVED + PTFF_SAVE_RSP push_nonvol_reg rbx // .. push_imm DEFAULT_FRAME_SAVE_FLAGS // save the register bitmask push_register \trashReg // Thread * (unused by stackwalker) - push_register rbp // save caller's RBP - mov \trashReg, [rsp + 10*8] // Find the return address - push_register \trashReg // save m_RIP + mov \trashReg, [rsp + 8*8] // Find and save the callers RBP + push_register \trashReg + mov \trashReg, [rsp + 10*8] // Find and save the return address + push_register \trashReg lea \trashReg, [rsp] // trashReg == address of frame .endm |