fn show_info(ctx: &KernelContext<>) {
    // show memory information
    println!("\nMemory Information: \n");
    println!("    {:<12}{:<12}{:<12}", "Base", "End", "Type");
    ctx.mem_info.get_ranges().unwrap().iter().for_each(|x| {
        let ty: &'static str = x.ty.into();
        println!("    {:<#12x}{:<#12x}{:<12}", x.base, x.base + x.len, ty)
    });

    println!("\n\nDisk Information: \n");
    let max_lba48: u64 = ctx.disk_info.lba48_sec.cast_le();
    println!("    MAX ATA LBA48 SECTORS: {}", max_lba48);
    println!("\n\n");
}
/// log some hardware information on screen
log some hardware information on screen
log some hardware information on screen
fn show_info(ctx: &KernelContext<>) {
    // show memory information
    println!("\nMemory Information: \n");
    println!("    {:<12}{:<12}{:<12}", "Base", "End", "Type");
    ctx.mem_info.get_ranges().unwrap().iter().for_each(|x| {
        let ty: &'static str = x.ty.into();
        println!("    {:<#12x}{:<#12x}{:<12}", x.base, x.base + x.len, ty)
    });
    println!("\n\nDisk Information: \n");
    let max_lba48: u64 = ctx.disk_info.lba48_sec.cast_le();
    println!("    MAX ATA LBA48 SECTORS: {}", max_lba48);
    println!("\n\n");
}
fn show_info ( ctx : & KernelContext < > ) { // show memory information println ! ( " \n \n " ) ; println ! ( " " " " " " " " ) ; ctx . mem_info . get_ranges ( ) . unwrap ( ) . iter ( ) . for_each ( | x | { let ty : & ' static str = x . ty . into ( ) ; println ! ( " " x base x base x len ty ) } ) ; println ! ( " \n \n \n " ) ; let max_lba48 : u64 = ctx . disk_info . lba48_sec . cast_le ( ) ; println ! ( " " max_lba48 ) ; println ! ( " \n \n " ) ; }
log some hardware information on screen
log some hardware information on screen
ctx
&KernelContext<>