libcortex_a9/boot: enable IRQ on reset.

master
pca006132 3 years ago committed by Gitea
parent 2927c43309
commit c1f61b5673
  1. 6
      libcortex_a9/src/asm.rs
  2. 2
      libsupport_zynq/src/boot.rs

@ -33,3 +33,9 @@ pub fn dsb() {
pub fn isb() {
unsafe { llvm_asm!("isb" :::: "volatile") }
}
/// Enable IRQ
#[inline]
pub unsafe fn enable_irq() {
llvm_asm!("cpsie i":::: "volatile");
}

@ -57,6 +57,7 @@ unsafe fn boot_core0() -> ! {
asm::dmb();
asm::dsb();
asm::enable_irq();
main_core0();
panic!("return from main");
});
@ -77,6 +78,7 @@ unsafe fn boot_core1() -> ! {
asm::dmb();
asm::dsb();
asm::enable_irq();
main_core1();
panic!("return from main_core1");
});

Loading…
Cancel
Save