Skip to content

Commit

Permalink
feat(uefi): allow logging after exiting boot services
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 9, 2024
1 parent 67fd234 commit bce3209
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spinning_top = "0.3"

[target.'cfg(target_os = "uefi")'.dependencies]
uefi = { version = "0.27", features = ["alloc"] }
uefi-services = { version = "0.24", features = ["qemu"] }
uefi-services = { version = "0.24", default-features = false, features = ["panic_handler", "qemu"] }
qemu-exit = "3"

[target.'cfg(target_arch = "riscv64")'.dependencies]
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ mod macros;
#[cfg(target_os = "none")]
mod allocator;
mod arch;
#[cfg(target_os = "none")]
mod log;
mod os;

Expand Down
1 change: 1 addition & 0 deletions src/os/uefi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn read_app(bt: &BootServices) -> Vec<u8> {
#[entry]
fn loader_main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
uefi_services::init(&mut system_table).unwrap();
crate::log::init();

let app = read_app(system_table.boot_services());

Expand Down

0 comments on commit bce3209

Please sign in to comment.