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

Add RISC-V detection macro and more architecture instructions #92574

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

luojia65
Copy link
Contributor

@luojia65 luojia65 commented Jan 5, 2022

This pull request includes:

  • Update stdarch dependency to include ratified RISC-V supervisor and hypervisor instruction intrinsics which is useful in Rust kernel development
  • Add macro is_riscv_feature_detected!
  • Modify impl of core::hint::spin_loop to comply with latest version of core::arch

After this update, users may now develop RISC-V kernels and user applications more freely.

r? @Amanieu

@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 5, 2022
library/core/src/hint.rs Outdated Show resolved Hide resolved
library/core/src/hint.rs Outdated Show resolved Hide resolved
Update library/core/src/hint.rs

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>

Remove redundant config gate
@luojia65 luojia65 force-pushed the riscv-kernel-dev-rust branch from 976628b to 06f4453 Compare January 5, 2022 07:45
@luojia65
Copy link
Contributor Author

luojia65 commented Jan 5, 2022

Hello! I applied two review suggestions.

r? @Amanieu

@Amanieu
Copy link
Member

Amanieu commented Jan 5, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jan 5, 2022

📌 Commit 06f4453 has been approved by Amanieu

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 5, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 5, 2022
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#92092 (Drop guards in slice sorting derive src pointers from &mut T, which is invalidated by interior mutation in comparison)
 - rust-lang#92388 (Fix a minor mistake in `String::try_reserve_exact` examples)
 - rust-lang#92442 (Add negative `impl` for `Ord`, `PartialOrd` on `LocalDefId`)
 - rust-lang#92483 (Stabilize `result_cloned` and `result_copied`)
 - rust-lang#92574 (Add RISC-V detection macro and more architecture instructions)
 - rust-lang#92575 (ast: Always keep a `NodeId` in `ast::Crate`)
 - rust-lang#92583 (:arrow_up: rust-analyzer)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c570fcb into rust-lang:master Jan 5, 2022
@rustbot rustbot added this to the 1.59.0 milestone Jan 5, 2022
@luojia65 luojia65 deleted the riscv-kernel-dev-rust branch September 9, 2022 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants