Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 07:09:22 +0000 (GMT)
From:      Mike Silbersack <silby@silby.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        "Clark C . Evans" <cce@clarkevans.com>, <freebsd-hackers@freebsd.org>
Subject:   Re: panic: pmap_enter
Message-ID:  <20020314070732.H23489-100000@patrocles.silby.com>
In-Reply-To: <3C8E825E.41E7DDFA@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 12 Mar 2002, Terry Lambert wrote:

> #define blkmap(fs, map, loc) \
>     (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag)))
>
> looks a little suspect, doesn't it?  "& 0" for 8 is probably
> correct, but "& 1" for 4 and "& 2" for 2 and "& 4" for 1 is
> probably not right... maybe:
>
> #define blkmap(fs, map, loc) \
>     (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & 0xff & ((0xff >> (NBBY -
> (fs)->fs_frag))^0xff))
>
> Would be more right?  After all, it's the high bits of the low
> bits you want to save, not the low bits of the low bits...
>
> -- Terry

FWIW, I didn't mean to ignore this message, I was going to look it over
carefully before commenting.  However, Sid Meier told me that I needed to
spend some time taking over the world, so I was unable to.

If anyone familiar with FFS wants to check it out, please be my guest,
otherwise I'll try to get to it soon.

Mike "Silby" Silbersack


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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