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

Change software_interrupt to use min_const_generics #227

Merged
merged 3 commits into from Jan 12, 2021
Merged

Conversation

josephlr
Copy link
Contributor

As this feature is stablized in the lastest nightly, no
feature flags need to be added.

Opening PR against the next branch as this is a breaking change.

Signed-off-by: Joe Richey joerichey@google.com

As this feature is stablized in the lastest nightly, no
feature flags need to be added.

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr
Copy link
Contributor Author

@phil-opp, do you think we should add an explanation about why software_interrupt is unsafe?

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.

Awesome, thanks a lot!

Are you sure that this inline assembly works? The Rust compiler only checks inline asm when it's used, so it would be great if we could add a small test that uses this function.

@phil-opp
Copy link
Member

do you think we should add an explanation about why software_interrupt is unsafe?

That would be great!

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr
Copy link
Contributor Author

it would be great if we could add a small test that uses this function

Added some additional tests to where we were testing the int3 function

@josephlr
Copy link
Contributor Author

do you think we should add an explanation about why software_interrupt is unsafe?

That would be great!

Done

Signed-off-by: Joe Richey <joerichey@google.com>
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.

Thanks!

@josephlr josephlr merged commit ebb80ab into next Jan 12, 2021
@josephlr josephlr deleted the const_int branch January 12, 2021 12:28
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 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>
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.

None yet

2 participants