You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build error
error[E0658]: const operands for inline assembly are unstable
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/kernel_guard-0.1.2/src/arch/riscv.rs:10:60
|
10 | unsafe { asm!("csrrc {}, sstatus, {}", out(reg) flags, const SIE_BIT) };
| ^^^^^^^^^^^^^
|
= note: see issue #93332 rust-lang/rust#93332 for more information
= help: add #![feature(asm_const)] to the crate attributes to enable
= note: this compiler was built on 2024-05-01; consider upgrading it if it is out of date
The text was updated successfully, but these errors were encountered:
It compiles fine on the latest stable toolchain (>= 1.82.0, which stabilize asm_const). If you need to use an older toolchain, you can pin the version to v0.1.1.
rust-toolchain:
[toolchain]
profile = "minimal"
channel = "nightly-2024-05-02"
components = ["rust-src", "llvm-tools", "rustfmt", "clippy"]
targets = ["x86_64-unknown-none", "riscv64gc-unknown-none-elf", "aarch64-unknown-none", "aarch64-unknown-none-softfloat"]
build error
error[E0658]: const operands for inline assembly are unstable
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/kernel_guard-0.1.2/src/arch/riscv.rs:10:60
|
10 | unsafe { asm!("csrrc {}, sstatus, {}", out(reg) flags, const SIE_BIT) };
| ^^^^^^^^^^^^^
|
= note: see issue #93332 rust-lang/rust#93332 for more information
= help: add #![feature(asm_const)] to the crate attributes to enable
= note: this compiler was built on 2024-05-01; consider upgrading it if it is out of date
The text was updated successfully, but these errors were encountered: