Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SegmentSelector in InterruptStackFrame #263

Merged
merged 1 commit into from
Jun 12, 2021
Merged

Use SegmentSelector in InterruptStackFrame #263

merged 1 commit into from
Jun 12, 2021

Conversation

josephlr
Copy link
Contributor

@josephlr josephlr commented Jun 4, 2021

This makes the value easier to use and slightly improves the Debug
implementation. Also, change the InterruptStackFrame to
#[repr(transparent)]. It doesn't really matter but makes it clear that
InterruptStackFrame and InterruptStackFrameValue are ABI compatible.

Note that this now makes InterruptStackFrameValues impossible to
construct, but that seems fine.

Signed-off-by: Joe Richey [email protected]

This makes the value easier to use and slightly improves the `Debug`
implementation. Also, change the `InterruptStackFrame` to
`#[repr(transparent)]`. It doesn't really matter but makes it clear that
`InterruptStackFrame` and `InterruptStackFrameValue` are ABI compatible.

Note that this now makes `InterruptStackFrameValue`s imposible to
construct, but that seems fine.

Signed-off-by: Joe Richey <[email protected]>
@josephlr josephlr requested a review from phil-opp June 4, 2021 09:56
@josephlr josephlr mentioned this pull request Jun 4, 2021
13 tasks
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks!

@josephlr josephlr merged commit 2313b30 into next Jun 12, 2021
@josephlr josephlr deleted the isf branch June 12, 2021 08:02
josephlr added a commit to josephlr/x86_64 that referenced this pull request Jul 18, 2021
This makes the value easier to use and slightly improves the `Debug`
implementation. Also, change the `InterruptStackFrame` to
`#[repr(transparent)]`. It doesn't really matter but makes it clear that
`InterruptStackFrame` and `InterruptStackFrameValue` are ABI compatible.

Note that this now makes `InterruptStackFrameValue`s imposible to
construct, but that seems fine.

Signed-off-by: Joe Richey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants