Date: Wed, 21 Jun 1995 00:52:20 +0400 (MSD) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" <ache@astral.msk.su> To: Bruce Evans <bde@zeta.org.au>, hackers@freebsd.org, phk@freebsd.org Subject: Boot2 fix for review Message-ID: <KH4Kpvl0d2@deep-thought.demos.su>
next in thread | raw e-mail | index | archive | help
*** disk.c.old Tue May 30 14:55:00 1995 --- disk.c Wed Jun 21 00:48:17 1995 *************** *** 135,144 **** /* This is a good idea for all disks */ bsize = dl->d_partitions[part].p_size; bend = boff + bsize - 1 ; ! if (bend / spc > 1024) { ! printf("partition is out of reach from the bios\n"); ! return 1; ! } #ifdef DO_BAD144 do_bad144 = 0; --- 135,142 ---- /* This is a good idea for all disks */ bsize = dl->d_partitions[part].p_size; bend = boff + bsize - 1 ; ! if (bend / spc > 1024) ! printf("root partition size > 1024, BIOS can't load kernel stored beyond this limit\n"); #ifdef DO_BAD144 do_bad144 = 0; *************** *** 212,217 **** --- 210,219 ---- int cyl, head, sec, nsec; cyl = sector/spc; + if (cyl > 1023) { + printf("Error: C:%d > 1023\n", cyl); + return; + } head = (sector % spc) / spt; sec = sector % spt; nsec = spt - sec; -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KH4Kpvl0d2>