Skip to content

Commit

Permalink
crates/sel4-kernel-loader: Fix bug on rpi4
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Feb 5, 2024
1 parent 99021d1 commit d6f9674
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/sel4-kernel-loader/src/plat/bcm2711/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use spin::Mutex;

use sel4_config::sel4_cfg;
use sel4_config::{sel4_cfg, sel4_cfg_bool};

use crate::{arch::reset_cntvoff, drivers::bcm2835_aux_uart::Bcm2835AuxUartDevice, plat::Plat};

Expand All @@ -26,8 +26,10 @@ impl Plat for PlatImpl {
}

fn init_per_core() {
unsafe {
reset_cntvoff();
if sel4_cfg_bool!(ARM_HYPERVISOR_SUPPORT) {
unsafe {
reset_cntvoff();
}
}
}

Expand Down

0 comments on commit d6f9674

Please sign in to comment.