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
so we have to make sure that the size of the region is < the max i32 to call that. this is silly. we should be able to handle memory regions bigger than 2,147,483,647 bytes (this one is 3,131,269,122 B).
we could either make Address::offset take an isize isntead, or have split_back not use Address::offset.
The text was updated successfully, but these errors were encountered:
running in QEMU with
-machine accel=KVM -cpu host -m 4G
gets us a kernel panic when adding the memory map to the page-frame allocator.if i run with
$ cargo run-x64 --serial -- -m 4G
i get this oops:
which is this assertion in
mem::Region::split_back
:mycelium/hal-core/src/mem.rs
Lines 102 to 103 in 993d1b9
this is because the
Address::offset
function tries to be clever and takes ani32
as the offset to ensure the offset is always in-bounds:mycelium/hal-core/src/addr.rs
Lines 82 to 89 in 993d1b9
so we have to make sure that the size of the region is < the max
i32
to call that. this is silly. we should be able to handle memory regions bigger than 2,147,483,647 bytes (this one is 3,131,269,122 B).we could either make
Address::offset
take anisize
isntead, or havesplit_back
not useAddress::offset
.The text was updated successfully, but these errors were encountered: