-
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
Merge branch 'master' into next #280
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
This function only throws a #UD, which we generally consider to be safe. Also, add an `Exceptions` section to the `Segment64` docs (this is similar to the `Panic` section in normal Rust docs). Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Add common abstractions for x86 Segments
This ensures that the arguments are passed by RDI, RSI, RDX, RCX, etc.
This PR makes the `idt` module available for use in the stable Rust with the `instructions` feature. Especially, this PR - exposes `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. - defines the handler function types as `()` if the `abi_x86_interrupt` feature is not enabled. These types are only used with the `abi_x86_interrupt` feature. Co-authored-by: Philipp Oppermann <[email protected]>
We use our poor-man's assert instead of trying to do math. Signed-off-by: Joe Richey <[email protected]>
Alos, add extra checks when writing to XCR0. Signed-off-by: Ethin Probst <[email protected]> Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
This avoids getting a #GP when writing. Signed-off-by: Joe Richey <[email protected]>
We can't make VirtAddr and PhysAddr methods const as they wrap an into impl.
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Make align_up and align_down const
* add a SelectorErrorCode * remove the breaking change * make SelectorErrorCode methods pub * Derive clone and copy for SelectorErrorCode * Make Descriptor table public say where it is used * update doc comment * added a new to SelectorErrorCode * Derive more * Update src/structures/idt.rs Co-authored-by: Joseph Richey <[email protected]>
Add flags for CR0, CR4 and XCR0, as well as extra checks for modification of XCR0
Signed-off-by: Joe Richey <[email protected]>
* Create a basic release script * Install python requirements * Bump version for testing * Run cargo publish without --dry-run * Push the git tag to the repo * Set up crates.io token for releasing * Fix tagging * Authenticate `gh` tool * Run script only on master branch and set version back to 0.14.3
Instead of listing all versions, try to query the info about the respective version directly.
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Joe Richey <[email protected]>
Release version to 0.14.4
@phil-opp I've updated the |
phil-opp
approved these changes
Aug 1, 2021
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.
Sure, looks good to me! Sorry for the delay, I was on vacation. I try to work through my other review requests soon.
Deprecate YMM Signed-off-by: Joe Richey <[email protected]>
Deprecate PROTECTION_KEY Signed-off-by: Joe Richey <[email protected]>
Rename XCr0 and CR4 flags
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The only complex file to merge was
src/structures/idt.rs
take a look if you're concerned.Signed-off-by: Joe Richey [email protected]