Skip to content

Commit 2704f3c

Browse files
authored
Merge pull request #33 from duskmoon314/ignore-dtb-error
fix: ignore LastCompVersion error in dtb
2 parents 8e71060 + f04b864 commit 2704f3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rustsbi-qemu/src/device_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub(crate) fn parse(opaque: usize) -> BoardInfo {
4646
};
4747
let dtb = unsafe {
4848
Dtb::from_raw_parts_filtered(opaque as _, |e| {
49-
matches!(e, E::Misaligned(4) | E::LastCompVersion(16))
49+
matches!(e, E::Misaligned(4) | E::LastCompVersion(_))
5050
})
5151
}
5252
.unwrap();

test-kernel/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl BoardInfo {
113113
};
114114
unsafe {
115115
Dtb::from_raw_parts_filtered(dtb_pa as _, |e| {
116-
matches!(e, E::Misaligned(4) | E::LastCompVersion(16))
116+
matches!(e, E::Misaligned(4) | E::LastCompVersion(_))
117117
})
118118
}
119119
.unwrap()

0 commit comments

Comments
 (0)