-
Notifications
You must be signed in to change notification settings - Fork 133
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
feat(idt): make it available in the stable Rust #271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really good idea, really only style nits here, the overall change seems reasonable.
This change is also backwards compatible, which is great!!
`Entry::set_handler_addr`.
To prevent users from constructing these types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job, thanks for making the change.
I'll give @phil-opp a chance to look over this, but LGTM on my end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few suggestions for the docs, but otherwise this looks good to me. Thanks, @toku-sa-n!
Co-authored-by: Philipp Oppermann <[email protected]>
This PR makes the
idt
module available for use in the stable Rust with theinstructions
feature.Especially, this PR
Entry::set_handler_addr
as an unsafe method. This is the only way for the users of this crate who build it with the stable Rust to set the addresses of the interrupt or exception handlers.()
if theabi_x86_interrupt
feature is not enabled. These types are only used with theabi_x86_interrupt
feature.