On Mon, 06 Jul 2026 10:36:57 +0200,
Shivang Upadhyay <[email protected]> wrote:
> 
> On Fri, 2026-07-03 at 15:06 +0200, Kirill A.Korinsky wrote:
> > I have no idea why OpenBSD does it but I see in powerpc64's pmap.c:
> > 
> > #define PATMEMSZ    (64 * 1024)
> > #define PATSIZE             (ffs(PATMEMSZ) - 12)
> Hi,
> 
> This seems like a bug in openbsd to me.
> PowerISAv3.1 under PTCR says,
>       
> 
>       4:51 PATB  | Partition Table Base
>       59:63 PATS | Partition Table Size=2^12+PATS , PATS≤24
> 
> I think the developer was perhaps wanted a LOG2 functions instead of
> ffs (which is just LOG2, but 1-indexed). IMO, this should better
> handled on OS side.
> 
> Thanks.
>

I'd like to add Mark to the loop who is the author of that code.

> > 
> > which was introduced by this commit:
> > https://github.com/openbsd/src/commit/dfe2a24332fd6769a7f9bb5806753189dae4d9c9
> > 
> > --
> 

-- 
wbr, Kirill

Reply via email to