Skip to content

Commit

Permalink
fix(x86_64/fdt): allow devicetrees without memory node
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 16, 2024
1 parent 4a3f2a9 commit e55902d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/arch/x86_64/mm/physicalmem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ fn detect_from_fdt() -> Result<(), ()> {
PHYSICAL_FREE_LIST.lock().push(entry);
}

assert!(
found_ram,
"Could not find any available RAM in the Devicetree Memory Map"
);

Ok(())
if found_ram {
Ok(())
} else {
Err(())
}
}

fn detect_from_multiboot_info() -> Result<(), ()> {
Expand Down

0 comments on commit e55902d

Please sign in to comment.