Skip to content

Commit 82ea900

Browse files
Merge commits pushed to pull request
2 parents 31f77fa + 20dbee7 commit 82ea900

File tree

3 files changed

+6
-54
lines changed

3 files changed

+6
-54
lines changed

Cargo.lock

Lines changed: 2 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,5 @@ repository.workspace = true
66
edition = "2021"
77
description = "Makes a kernel compatible with the bootloader crate"
88

9-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10-
11-
[dependencies]
12-
uefi = "0.24.0"
13-
149
[dev-dependencies]
1510
rand = "0.8.4"

common/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn convert_level(level: LevelFilter) -> log::LevelFilter {
7272
}
7373

7474
/// Required system information that should be queried from the BIOS or UEFI firmware.
75-
#[derive(Debug)]
75+
#[derive(Debug, Copy, Clone)]
7676
pub struct SystemInfo {
7777
/// Information about the (still unmapped) framebuffer.
7878
pub framebuffer: Option<RawFrameBufferInfo>,
@@ -81,8 +81,9 @@ pub struct SystemInfo {
8181
pub ramdisk_addr: Option<u64>,
8282
pub ramdisk_len: u64,
8383

84-
/// UEFI runtime table address (on a UEFI system)
85-
// #[cfg(target_os = "uefi")]
84+
/// UEFI runtime table address (if running on UEFI).
85+
///
86+
/// Use a raw pointer from your kernel to this address to access UEFI Runtime Services.
8687
pub rt_table_addr: Option<u64>,
8788
}
8889

0 commit comments

Comments
 (0)