diff --git a/Cargo.lock b/Cargo.lock index 6f8c041b..81735d62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -301,9 +301,9 @@ checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" [[package]] name = "r-efi" -version = "4.5.0" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9e935efc5854715dfc0a4c9ef18dc69dee0ec3bf9cc3ab740db831c0fdd86a3" +checksum = "37bc43dd39c4165ded8ffe15f0e0653ce7b73e86fd032eff18121589cbc648a5" [[package]] name = "rand" diff --git a/Cargo.toml b/Cargo.toml index 8a929e94..1db5ca69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ efi-var = [] [dependencies] bitflags = "2.6.0" atomic_refcell = "0.1.13" -r-efi = { version = "4.5.0", features = ["efiapi"] } +r-efi = { version = "5.0.0", features = ["efiapi"] } heapless = "0.8.0" log = "0.4.22" diff --git a/src/efi/mod.rs b/src/efi/mod.rs index 68f1a498..4db628b6 100644 --- a/src/efi/mod.rs +++ b/src/efi/mod.rs @@ -177,7 +177,7 @@ fn new_image_handle( image_size: load_size, image_code_type: efi::LOADER_CODE, image_data_type: efi::LOADER_DATA, - unload: boot_services::unload_image, + unload: Some(boot_services::unload_image), reserved: null_mut(), }, entry_point: entry_addr,