Skip to content

Commit ef9cc7f

Browse files
committed
build: Enable pvh iff x86_64 and non-coreboot build
Signed-off-by: Akira Moroo <[email protected]>
1 parent ef61dda commit ef9cc7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ macro_rules! container_of_mut {
1717

1818
// SAFETY: Requires that addr point to a static, null-terminated C-string.
1919
// The returned slice does not include the null-terminator.
20-
#[cfg(target_arch = "x86_64")]
20+
#[cfg(all(target_arch = "x86_64", not(feature = "coreboot")))]
2121
pub unsafe fn from_cstring(addr: u64) -> &'static [u8] {
2222
if addr == 0 {
2323
return &[];

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ mod mem;
6161
mod part;
6262
mod pci;
6363
mod pe;
64-
#[cfg(target_arch = "x86_64")]
64+
#[cfg(all(target_arch = "x86_64", not(feature = "coreboot")))]
6565
mod pvh;
6666
mod rtc;
6767
#[cfg(target_arch = "riscv64")]

0 commit comments

Comments
 (0)