Make ExceptionFrames fields private#239
Make ExceptionFrames fields private#239bors[bot] merged 5 commits intorust-embedded:masterfrom jonas-schievink:ef-priv
ExceptionFrames fields private#239Conversation
|
r? @korken89 (rust_highfive has picked a reviewer for you, use r? to override) |
Otherwise this would be a regression in functionality
korken89
left a comment
There was a problem hiding this comment.
LGTM, does anyone else want to chime in?
|
Is there any sense in modifying only some of the full set of registers? If you implement an RTOS, you may want to save/restore all of the registers. |
Yes, I've had to set only Saving / Restoring all registers isn't a bad point though, since that's needed for context switching. Maybe we can provide wrappers around pointer casts / transmute / (this reminds me that none of these functions are |
japaric
left a comment
There was a problem hiding this comment.
This looks good to me.
If we want to support the RTOS case of modifying stacked registers in this minor release we can add a ExceptionFrameMut struct with this API instead of modifying the existing ExceptionFrame. Whether we want to do that or not depends on how far the next minor version is and how much need there is for ExceptionFrameMut right now.
|
bors r+ |
239: Make `ExceptionFrame`s fields private r=thejpster a=jonas-schievink Closes #234 ~~I can also add the `unsafe` setters, but they don't have any use right now.~~ (added them in order to not regress available operations on `ExceptionFrame`) Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
|
bors r- inline attributes are still missing |
Canceled |
f6865c1
|
bors r+ |
|
bors r=korken89 |
239: Make `ExceptionFrame`s fields private r=korken89 a=jonas-schievink Closes #234 ~~I can also add the `unsafe` setters, but they don't have any use right now.~~ (added them in order to not regress available operations on `ExceptionFrame`) Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Build succeeded |
Closes #234
I can also add the(added them in order to not regress available operations onunsafesetters, but they don't have any use right now.ExceptionFrame)