Skip to content

Commit

Permalink
try to pass the fmt and source and license check
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanSue committed Jul 14, 2024
1 parent b71273f commit 03a47c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
26 changes: 13 additions & 13 deletions crates/sel4-kernel-loader/src/arch/arm/arch/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@ impl Arch for ArchImpl {
unsafe {
set_tpidr(core_id);
}

unsafe {
drop_to_el1();
}
current_el = get_current_el();
assert!(current_el == Some(CurrentEL::EL::Value::EL1));

// unsafe {
// switch_translation_tables_el2();
// }

unsafe {
switch_translation_tables_el1();
if sel4_cfg_bool!(ARM_HYPERVISOR_SUPPORT) {
unsafe {
switch_translation_tables_el2();
}
} else {
unsafe {
drop_to_el1();
}
current_el = get_current_el();
assert!(current_el == Some(CurrentEL::EL::Value::EL1));
unsafe {
switch_translation_tables_el1();
}
}

(kernel_entry)(
Expand Down
15 changes: 0 additions & 15 deletions install_kernel_loader.sh

This file was deleted.

0 comments on commit 03a47c9

Please sign in to comment.