fn mark_upgrade(flashmap: &mut SimFlashMap, slot: &SlotInfo) {
    let flash = flashmap.get_mut(&slot.dev_id).unwrap();
    let offset = slot.trailer_off + c::boot_max_align() * 2;
    flash.write(offset, MAGIC.unwrap()).unwrap();
}
/// Write out the magic so that the loader tries doing an upgrade.
Write out the magic so that the loader tries doing an upgrade.
Write out the magic so that the loader tries doing an upgrade .
fn mark_upgrade(flashmap: &mut SimFlashMap, slot: &SlotInfo) {
    let flash = flashmap.get_mut(&slot.dev_id).unwrap();
    let offset = slot.trailer_off + c::boot_max_align() * 2;
    flash.write(offset, MAGIC.unwrap()).unwrap();
}
fn mark_upgrade ( flashmap : & mut SimFlashMap , slot : & SlotInfo ) { let flash = flashmap . get_mut ( & slot . dev_id ) . unwrap ( ) ; let offset = slot . trailer_off + c :: boot_max_align ( ) * 2 ; flash . write ( offset , MAGIC . unwrap ( ) ) . unwrap ( ) ; }
Write out the magic so that the loader tries doing an upgrade.
Write out the magic so that the loader tries doing an upgrade .
flashmap
&mut SimFlashMap
slot
&SlotInfo