From owner-freebsd-hackers Thu Jan 4 11:42:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA27319 for hackers-outgoing; Thu, 4 Jan 1996 11:42:45 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA27304 for ; Thu, 4 Jan 1996 11:42:26 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id UAA13395 for ; Thu, 4 Jan 1996 20:42:02 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id UAA24872 for freebsd-hackers@freebsd.org; Thu, 4 Jan 1996 20:42:02 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id UAA02333 for freebsd-hackers@freebsd.org; Thu, 4 Jan 1996 20:37:12 +0100 (MET) From: J Wunsch Message-Id: <199601041937.UAA02333@uriah.heep.sax.de> Subject: Re: HELP!!! THIS IS AN EMERGENCY (fwd) To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Thu, 4 Jan 1996 20:37:12 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199601032046.NAA15501@phaeton.artisoft.com> from "Terry Lambert" at Jan 3, 96 01:46:49 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk As Terry Lambert wrote: > > > BSD does not have a 500 MB limit. It can speak whatever the hardware > > allows for, this is c<=65535, h<=15, s<=255. For disks that are used > > in a BIOS environment as well, the `s' limit is 63 however. This > > would still account for 65536*16*31 = 32505856 blocks, or 15872 MB. > > c = 10 bits = 2^10 = 1024. Not 65536. This is the BIOS-visible part. BSD can go beyond this, even for disks where the first part must be accessible to the BIOS (like boot disks). > The missing 6 bits that you added in are 1024 * 2^5 and 2^n = 32 for > h = 0..31 (your n is too small by one bit). No. Register 0x1f6 does only use bits 0 through 3 for head addressing (16 heads), bit 4 selects the primary/secondary drive, bits 5/6 select the sector size, bit 7 is used for ECC usage. (van Gilluwe, p 525). > The INT 21 interface is very specifically c:10/h:6/s:8. Or 8Gig for > a maxed out 24 bit value. The INT 21 interface does not even use C/H/S addressing. It can only address files. The INT 0x25/0x26 interface does allow for non-file disk access, but uses ``DOS relative sector numbers''. Both are irrelevant for us, since they belong to DOS. The INT 0x13 interface traditionally used 10 bits for cylinder numbers, and an entire byte for head numbers, though the hardware registers limit the head number to 0..15. van Gilluwe claims that the topmost two bits of %dh could be used as an extended cylinder number. Dunno which BIOSes support this. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)