Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 438bb9e

Browse files
committed
Rust and UEFI version bump/updated
Took 24 minutes
1 parent 2167f6c commit 438bb9e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

loader/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ path = "src/main.rs"
99

1010
[dependencies]
1111
log = "0.4.20"
12-
uefi = { version = "0.28.0", features = ["alloc"] }
13-
uefi-services = { version = "0.25.0", default-features = true }
12+
uefi = { version = "0.29.0", features = [ "panic_handler", "logger", "alloc", "global_allocator" ] } # https://crates.io/crates/uefi

uefi/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ name = "illusion"
1010
path = "src/main.rs"
1111

1212
[dependencies]
13-
uefi = { version = "0.28.0", features = ["alloc"] } # https://crates.io/crates/uefi
14-
#uefi-services = { version = "0.25.0", default-features = false } # https://crates.io/crates/uefi-services
13+
uefi = { version = "0.29.0", features = ["alloc"] } # https://crates.io/crates/uefi
1514
log = { version = "0.4.20", default-features = false } # https://crates.io/crates/log
1615
once_cell = "1.19.0" # https://crates.io/crates/once_cell
1716
spin = "0.9" # https://crates.io/crates/spin

uefi/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// early logging, and direct manipulation of loaded image properties for hypervisor initialization.
44

55
#![feature(new_uninit)]
6-
#![feature(panic_info_message)]
76
#![no_main]
87
#![no_std]
98

uefi/src/stack.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub unsafe fn allocate_host_stack(layout: Layout) -> *mut u8 {
5555
// space so that we can return an appropriately-aligned pointer
5656
// within the allocation.
5757
let full_alloc_ptr = if let Ok(ptr) = boot_services.allocate_pool(memory_type, size + align) {
58-
ptr
58+
ptr.as_ptr()
5959
} else {
6060
return ptr::null_mut();
6161
};
@@ -83,7 +83,10 @@ pub unsafe fn allocate_host_stack(layout: Layout) -> *mut u8 {
8383
// The requested alignment is less than or equal to eight, and
8484
// `allocate_pool` always provides eight-byte alignment, so we can
8585
// use `allocate_pool` directly.
86-
boot_services.allocate_pool(memory_type, size).map(|ptr| ptr).unwrap_or(ptr::null_mut())
86+
boot_services
87+
.allocate_pool(memory_type, size)
88+
.map(|ptr| ptr.as_ptr())
89+
.unwrap_or(ptr::null_mut())
8790
};
8891

8992
// Record the allocation without causing a deadlock.

0 commit comments

Comments
 (0)