When writing an OS where the memory is exactly mapped from 0xffff_ff00_0000_0000 with a RAM of size0x0000_0100_0000_000 the following line does an overflow which makes the bootloader panic even if it should not.
|
let end_inclusive = (start + size) - 1usize; |
I'll could recommend changing the line to start + (size - 1) if we know that size != 0.
Otherwise, thank you for the great work
When writing an OS where the memory is exactly mapped from
0xffff_ff00_0000_0000with a RAM of size0x0000_0100_0000_000the following line does an overflow which makes the bootloader panic even if it should not.bootloader/src/binary/level_4_entries.rs
Line 106 in 77c9525
I'll could recommend changing the line to
start + (size - 1)if we know thatsize != 0.Otherwise, thank you for the great work