We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef61dda commit ef9cc7fCopy full SHA for ef9cc7f
src/common.rs
@@ -17,7 +17,7 @@ macro_rules! container_of_mut {
17
18
// SAFETY: Requires that addr point to a static, null-terminated C-string.
19
// The returned slice does not include the null-terminator.
20
-#[cfg(target_arch = "x86_64")]
+#[cfg(all(target_arch = "x86_64", not(feature = "coreboot")))]
21
pub unsafe fn from_cstring(addr: u64) -> &'static [u8] {
22
if addr == 0 {
23
return &[];
src/main.rs
@@ -61,7 +61,7 @@ mod mem;
61
mod part;
62
mod pci;
63
mod pe;
64
65
mod pvh;
66
mod rtc;
67
#[cfg(target_arch = "riscv64")]
0 commit comments