Skip to content

Commit dd0c143

Browse files
committed
Add private field to BootInfo to allow future extension
1 parent d77b40e commit dd0c143

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootinfo/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ mod memory_map;
88
#[repr(C)]
99
pub struct BootInfo {
1010
pub memory_map: MemoryMap,
11+
_non_exhaustive: u8, // `()` is not FFI safe
1112
}
1213

1314
impl BootInfo {
1415
pub fn new(memory_map: MemoryMap) -> Self {
15-
BootInfo { memory_map }
16+
BootInfo {
17+
memory_map,
18+
_non_exhaustive: 0,
19+
}
1620
}
1721
}
1822

0 commit comments

Comments
 (0)