Skip to content

Commit 299a670

Browse files
Pass the UEFI runtime services table address to the BootInfo if running on UEFI
1 parent 7c8e2ca commit 299a670

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

api/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description = "Makes a kernel compatible with the bootloader crate"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12+
uefi = "0.24.0"
1213

1314
[dev-dependencies]
1415
rand = "0.8.4"

api/src/info.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ pub struct BootInfo {
6363
/// Virtual address of the loaded kernel image.
6464
pub kernel_image_offset: u64,
6565

66+
/// UEFI runtime table address (if running on UEFI)
67+
pub rt_table_addr: Optional<u64>,
68+
6669
#[doc(hidden)]
6770
pub _test_sentinel: u64,
6871
}
@@ -85,6 +88,7 @@ impl BootInfo {
8588
kernel_addr: 0,
8689
kernel_len: 0,
8790
kernel_image_offset: 0,
91+
rt_table_addr: Optional::None,
8892
_test_sentinel: 0,
8993
}
9094
}

0 commit comments

Comments
 (0)