Fix i686.

This commit is contained in:
4lDO2
2024-03-23 16:54:47 +01:00
parent 1b3e024f7d
commit 7261dccb72
6 changed files with 19 additions and 55 deletions
+6
View File
@@ -495,6 +495,12 @@ fn init_sections(mut allocator: BumpAllocator<RmmA>) {
while let Some(mut memory_map_area) = iter.next() {
// TODO: NonZeroUsize
// TODO: x86_32 fails without this check
if memory_map_area.size == 0 {
continue;
}
assert_ne!(
memory_map_area.size, 0,
"RMM should enforce areas are not zeroed"