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

replace software_interrupt! macro with generic function #259

Merged

Conversation

Freax13
Copy link
Member

@Freax13 Freax13 commented Jun 4, 2021

This pr replaces the software_interrupt! macro with a generic function.

This is a breaking change.

@Freax13
Copy link
Member Author

Freax13 commented Jun 4, 2021

I'm not sure if this function has to be unsafe, but the code previously emitted by the macro also required unsafe, so I marked it as unsafe for now.

Copy link
Contributor

@josephlr josephlr left a comment

Choose a reason for hiding this comment

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

I like this change (I was about to propose something similar). Can you open this pull request against the next branch rather than the master branch? I think having all the breaking changes in a dev branch will help us determine when we next want to cut a breaking release of this crate.

EDIT: I just realized I can do this myself.

As we're merging against the next branch, no need to update Changelog.md right now, that can wait until we merge next into master.

src/instructions/interrupts.rs Outdated Show resolved Hide resolved
src/instructions/interrupts.rs Show resolved Hide resolved
@josephlr josephlr changed the base branch from master to next June 4, 2021 07:16
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.

Looks good to me too, thanks!

@josephlr josephlr merged commit 885977a into rust-osdev:next Jun 4, 2021
@josephlr
Copy link
Contributor

josephlr commented Jun 4, 2021

Whoops I just realized we already had this change in-tree, see #227. I opened #260 to pull in the rest of that PR.

josephlr added a commit that referenced this pull request Jun 4, 2021
Followup to #259. Code previously merged as part of #227.

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr josephlr mentioned this pull request Jun 4, 2021
13 tasks
josephlr pushed a commit to josephlr/x86_64 that referenced this pull request Jul 18, 2021
This is a *breaking change*, also add note about safety.
josephlr added a commit to josephlr/x86_64 that referenced this pull request Jul 18, 2021
Followup to rust-osdev#259. Code previously merged as part of rust-osdev#227.

Signed-off-by: Joe Richey <joerichey@google.com>
Freax13 pushed a commit to Freax13/x86_64 that referenced this pull request Oct 17, 2021
Followup to rust-osdev#259. Code previously merged as part of rust-osdev#227.

Signed-off-by: Joe Richey <joerichey@google.com>
@Freax13 Freax13 mentioned this pull request Feb 25, 2022
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.

3 participants