Skip to content

Commit

Permalink
Merge pull request #334 from hermit-os/rm-uefi-services
Browse files Browse the repository at this point in the history
build(deps): upgrade uefi to version 0.28
  • Loading branch information
mkroening authored Apr 23, 2024
2 parents db3a153 + 42625b9 commit c72cb6a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ updates:
schedule:
interval: "weekly"
timezone: "Europe/Berlin"
groups:
uefi:
patterns:
- "uefi*"

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
23 changes: 6 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ exclusive_cell = "0.1"
spinning_top = "0.3"

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

[target.'cfg(target_arch = "riscv64")'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/os/uefi/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Console {
fn init(&mut self) {
assert!(matches!(self, Console::None));
unsafe {
uefi_services::system_table()
uefi::helpers::system_table()
.boot_services()
.create_event(
EventType::SIGNAL_EXIT_BOOT_SERVICES,
Expand All @@ -50,7 +50,7 @@ impl fmt::Write for Console {
self.init();
self.write_str(s)?;
}
Console::BootServices => uefi_services::system_table().stdout().write_str(s)?,
Console::BootServices => uefi::helpers::system_table().stdout().write_str(s)?,
Console::Native { console } => console.write_bytes(s.as_bytes()),
}
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/os/uefi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub use self::console::CONSOLE;
// Entry Point of the Uefi Loader
#[entry]
fn loader_main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
uefi_services::init(&mut system_table).unwrap();
uefi::helpers::init(&mut system_table).unwrap();
crate::log::init();

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

0 comments on commit c72cb6a

Please sign in to comment.