CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2011/03/14 16:14:40

Modified files:
        sys/arch/amd64/include: biosvar.h 
        sys/arch/amd64/stand/installboot: installboot.c 
        sys/arch/amd64/stand/libsa: biosdev.c biosdev.h 
        sys/arch/i386/include: biosvar.h 
        sys/arch/i386/stand/installboot: installboot.c 
        sys/arch/i386/stand/libsa: biosdev.c biosdev.h 

Log message:
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)

Reply via email to