Skip to content

Commit

Permalink
fix error in riscv_peripheral::plic_codegen!
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Aug 20, 2024
1 parent 274df75 commit 27dbf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv-peripheral/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ macro_rules! plic_codegen {
/// This function determines the current HART ID by reading the [`riscv::register::mhartid`] CSR.
/// Thus, it can only be used in M-mode. For S-mode, use [`PLIC::ctx`] instead.
#[inline]
pub fn ctx_mhartid(&self) -> $crate::plic::CTX<Self> {
pub fn ctx_mhartid() -> $crate::plic::CTX<Self> {
$crate::plic::PLIC::<PLIC>::ctx_mhartid()
}
}
Expand Down

0 comments on commit 27dbf23

Please sign in to comment.