summaryrefslogtreecommitdiff
path: root/sys/dev/cons.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-10-17 23:20:13 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-10-17 23:20:13 +0000
commit504633b3eac97c77e073af15b877798f75a45588 (patch)
treebd788cadc010c249e3e39c84b00514de29862de0 /sys/dev/cons.c
parenta4de7aa4833c26ca1dd050309f0f32d2f091a689 (diff)
For non-CPU_BIOS architectures calculate the number of cylinders on
a disk rather than accepting the cylinder count provided by the disk or controller. This cylinder count will be '16383' for any disk >8.4G according to the ATA spec. CPU_BIOS on i386/amd64 has magic to deal with this, but other archs do not need to be restricted by the needs of PC BIOS. Fixes the default MBR OpenBSD partition size and disklabel on non-CPU_BIOS archtitectures. No change to behaviour on i386/amd64 machines. Noted by Stuart Henderson on his Thecus. Testing by various, including 'old i386 machines' nick@ ok tom@ pedro@ weingart@ deraadt@
Diffstat (limited to 'sys/dev/cons.c')
0 files changed, 0 insertions, 0 deletions