Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Jul 14, 2024
1 parent be5b0e4 commit 4a9c480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crates/sel4-supervising/src/arch/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
// SPDX-License-Identifier: BSD-2-Clause
//

use sel4::{UserContext, VCpuFault, VmFault, Word};
use sel4::{sel4_cfg, UserContext, VmFault, Word};

#[sel4_cfg(ARM_HYPERVISOR_SUPPORT)]
use sel4::VCpuFault;

use crate::{inner_decls, self_impl, BitField, VmFaultData, VmFaultWidth};

Expand Down Expand Up @@ -156,8 +159,10 @@ fn register_index(vm_fault: &VmFault) -> Word {
esr::SRT.get(vm_fault.valid_esr())
}

#[sel4_cfg(ARM_HYPERVISOR_SUPPORT)]
self_impl!(VCpuFaultExt, VCpuFault);

#[sel4_cfg(ARM_HYPERVISOR_SUPPORT)]
pub trait VCpuFaultExt {
inner_decls!(VCpuFault);

Expand Down
2 changes: 1 addition & 1 deletion crates/sel4-supervising/src/arch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// SPDX-License-Identifier: BSD-2-Clause
//

use sel4::config::sel4_cfg_if;
use sel4::sel4_cfg_if;

sel4_cfg_if! {
if #[sel4_cfg(ARCH_AARCH64)] {
Expand Down

0 comments on commit 4a9c480

Please sign in to comment.