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, OpenBSD was fixed:

https://marc.info/?l=openbsd-cvs&m=178436960888757&w=2

I'll send new version of original diff shortly.

-- 
wbr, Kirill

Reply via email to