Skip to content

Commit

Permalink
Use strict_provenance instead of ptr_to_from_bits
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSawa committed Apr 2, 2022
1 parent 577c622 commit c769ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/kernel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![feature(maybe_uninit_uninit_array)]
#![feature(int_roundings)]
#![feature(generic_const_exprs)]
#![feature(ptr_to_from_bits)]
#![feature(strict_provenance)]
#![feature(naked_functions)]

#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion crates/kernel/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn get_lapic_frequency(acpi2_rsdp: Option<*const core::ffi::c_void>) -> Result<u

fn unmap_physical_region<T>(region: &acpi::PhysicalMapping<Self, T>) {}
}
let table = unsafe { acpi::AcpiTables::from_rsdp(Handler, rsdp.to_bits())? };
let table = unsafe { acpi::AcpiTables::from_rsdp(Handler, rsdp.addr())? };
let timer = table
.platform_info()?
.pm_timer
Expand Down

0 comments on commit c769ad0

Please sign in to comment.