remove log
This commit is contained in:
parent
11c3614060
commit
0d8ecdf191
2 changed files with 0 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ pub fn load(addr: u32) -> Result <bool, &'static str> {
|
|||
let ptr_tmp = addr as *const RSDP20;
|
||||
let revision = unsafe {(*ptr_tmp).rsdp.revision};
|
||||
if (revision == 0 && check_checksum(addr, mem::size_of::<RSDP>())) || (revision == 2 && check_checksum(addr, mem::size_of::<RSDP20>())) {
|
||||
println!("REAL FOUND AT {:x}", addr);
|
||||
unsafe {RSDPTR = Some(ptr_tmp)};
|
||||
return Ok(revision == 2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,10 +28,8 @@ fn init_kernel(multiboot_information_address: usize) -> Result <(), &'static str
|
|||
unsafe { CONTEXT.boot_info_addr = multiboot_information_address };
|
||||
let mtboot = unsafe { multiboot2::load(multiboot_information_address)};
|
||||
if let Some(rsdp) = mtboot.rsdp_v2_tag() {
|
||||
println!("rsdp at {:x}", rsdp);
|
||||
acpi::load(rsdp)?;
|
||||
} else if let Some(rsdp) = mtboot.rsdp_tag() {
|
||||
println!("rsdp2 at {:x}", rsdp);
|
||||
acpi::load(rsdp)?;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue