Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 1995 16:39:20 -0700 (PDT)
From:      Julian Elischer <julian@ref.tfs.com>
To:        terry@lambert.org (Terry Lambert)
Cc:        terry@lambert.org, julian@freefall.FreeBSD.org, hackers@freefall.FreeBSD.org
Subject:   Re: boot -v error in printing..
Message-ID:  <199509022339.QAA05329@ref.tfs.com>
In-Reply-To: <199509022246.PAA03227@phaeton.artisoft.com> from "Terry Lambert" at Sep 2, 95 03:46:20 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> > > >  0:03df3f20 0..991=992 cyl, 0..63=64 heads, 0..31=32 sects
> > or more correctly..
> >  0:03df3f20 0..991=992 cyl, 0..63=64 heads, 1..32=32 sects
> >                                            ^^^^^^^^^^
> 
> I'd think that was wrong -- actually, isn't the fact that sectors
> are option base one an artifact of the internal representation
> more than any real numbering being imposed?
> 
> The option base should be uniform throughout.
yes but we're trying to say what the BIOS thinks and may have to agree
with some other DOS program before the user is happy with the number..

I've just added:
                        printf("0..%d=%d cyl, 0..%d=%d heads, 1..%d=%d sects\n",
                        printf(" max cyl = %d , %d heads, %d sects\n",
                                (j >> 16),(j >> 16)+1,
                                ((j >> 8) & 0xff),((j >> 8) & 0xff)+1,   
                                (j & 0xff), (j & 0xff));

I think it's an improvement for sure..

> 
> 
> 					Terry Lambert
> 					terry@lambert.org
> ---
> Any opinions in this posting are my own and not those of my present
> or previous employers.
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509022339.QAA05329>