You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mm::read_phys uses read_volatile, read_volatile however requires the pointer to be aligned by the size of the pointer given when in debug mode.
This will break in situations like acpi discovery where table pointers are not necessarily 32 bit aligned in memory.
pubunsafefnread_volatile<T>(src:*constT) -> T{ifcfg!(debug_assertions) && !is_aligned_and_not_null(src){// Not panicking to keep codegen impact smaller.abort();}// SAFETY: the caller must uphold the safety contract for `volatile_load`.unsafe{ intrinsics::volatile_load(src)}}
mm::read_phys uses read_volatile, read_volatile however requires the pointer to be aligned by the size of the pointer given when in debug mode.
This will break in situations like acpi discovery where table pointers are not necessarily 32 bit aligned in memory.
The text was updated successfully, but these errors were encountered: