Skip to content

Commit

Permalink
Minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Aug 28, 2024
1 parent 2e450c5 commit ab77be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub fn render(

mod_items.extend(quote! {
pub use riscv::{
CoreInterruptNumber, ExceptionNumber, PriorityNumber, HartIdNumber,
InterruptNumber, ExceptionNumber, PriorityNumber, HartIdNumber,
interrupt::{enable, disable, free, nested}
};

Expand Down Expand Up @@ -285,7 +285,7 @@ pub fn render(
#[riscv_rt::core_interrupt(CoreInterrupt::#core_interrupt)]
fn plic_handler() {
let claim = crate::PLIC::#ctx.claim();
if let Some(s) = claim.claim::<CoreInterrupt>() {
if let Some(s) = claim.claim::<ExternalInterrupt>() {
unsafe { _dispatch_core_interrupt(s.number()) }
claim.complete(s);
}
Expand Down

0 comments on commit ab77be8

Please sign in to comment.