diff options
| author | Michael Brown | 2008-09-23 02:13:28 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-09-23 02:13:28 +0200 |
| commit | ca0b0f061673b27bb7bfa6f62e99385273c097da (patch) | |
| tree | cf2c06b66558f8f85fbf69e37af1885f189c7d7e /src/interface | |
| parent | [memmap] Allow for 4GB+ systems in debug message (diff) | |
| download | ipxe-ca0b0f061673b27bb7bfa6f62e99385273c097da.tar.gz ipxe-ca0b0f061673b27bb7bfa6f62e99385273c097da.tar.xz ipxe-ca0b0f061673b27bb7bfa6f62e99385273c097da.zip | |
[relocate] Guard against systems that report empty memory regions
If the INT 15,e820 memory map reports a region [0,0), this confuses
the "truncate to even megabytes" logic, which ends up rounding the
region 'down' to [0,fff00000).
Fix by ensuring that the region's end address is at least 1, before we
subtract 1 to obtain the "last byte in region" address.
Diffstat (limited to 'src/interface')
0 files changed, 0 insertions, 0 deletions
