Repository navigation
Modify context related data structures for Unix AMD64 - #1228
Conversation
This change modifies PAL_LIMITED_CONTEXT, StackFrameIterator and REGDISPLAY structs and also all related code accessing registers that are not present for Unix.
|
@jkotas can you take a look please? This is the first one in a series of changes that will enable exception handling on Unix AMD64. |
|
LGTM @smosier Could you please take a look as well? |
| pContext->Rip = pPalContext->IP; | ||
| pContext->Rsp = pPalContext->Rsp; | ||
| pContext->Rbp = pPalContext->Rbp; | ||
| #ifndef UNIX_AMD64_ABI |
There was a problem hiding this comment.
I'm not sure I'm a fan of #ifdefing under the AMD64 block -- I think I'd rather see us treat amd64 unix as aseparate 'target cpu' and have the whole block separated per platform, i.e. one for AMD64 && UNIX_AMD64_ABI and one for AMD64 && !UNIX_AMD64_ABI
ef5388d to
20a88a5
Compare
|
@smosier I've addressed your feedback. Can you please take another look? |
20a88a5 to
5e92fef
Compare
|
@dotnet-bot test this please |
|
Implements part of #911 |
This change modifies PAL_LIMITED_CONTEXT, StackFrameIterator and also all related code for Unix AMD64 builds so that they correspond to the Unix AMD64 calling convention.