We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3c186 commit a84b43dCopy full SHA for a84b43d
riscv-peripheral/src/macros.rs
@@ -354,7 +354,7 @@ macro_rules! plic_codegen {
354
/// This function determines the current HART ID by reading the [`riscv::register::mhartid`] CSR.
355
/// Thus, it can only be used in M-mode. For S-mode, use [`PLIC::ctx`] instead.
356
#[inline]
357
- pub fn ctx_mhartid(&self) -> $crate::plic::CTX<Self> {
+ pub fn ctx_mhartid() -> $crate::plic::CTX<Self> {
358
$crate::plic::PLIC::<PLIC>::ctx_mhartid()
359
}
360
0 commit comments