diff options
author | 2011-03-14 22:14:40 +0000 | |
---|---|---|
committer | 2011-03-14 22:14:40 +0000 | |
commit | 9730fd37491dd2fe90572721f0d53243f6476a5b (patch) | |
tree | d61cc7dc9062c2af5b063f318f4c80463074c511 /usr.bin/netstat/main.c | |
parent | Fix compiler warning from recent HANDLE_PRAGMA_PACK_PUSH_POP addition. (diff) | |
download | wireguard-openbsd-9730fd37491dd2fe90572721f0d53243f6476a5b.tar.xz wireguard-openbsd-9730fd37491dd2fe90572721f0d53243f6476a5b.zip |
Clamp BIOS io attempts to < 2 ^28 - 1 sectors (a.k.a. 128GB for
512-byte sectors) as some BIOSen get confused when we ask for sectors
higher up.
Uss u_int throughout the boot code to calculate sector addresses,
since 32 bits is enough to do 28 ^ 1 - 1 arithmetic. Add checks
for wraparound.
I can now install and boot from the 7th extended partition below
128GB.
Much feedback & guidance from deraadt@. Also from weingart@ on
BIOS io.
ok deraadt@ (less a couple of minor tweaks found in testing)
Diffstat (limited to 'usr.bin/netstat/main.c')
0 files changed, 0 insertions, 0 deletions