Miod Vallat <[email protected]> wrote: > CVSROOT: /cvs > Module name: src > Changes by: [email protected] 2025/12/03 04:59:18 > > Modified files: > sys/arch/loongson/include: param.h > > Log message: > The definition of PAGE_SHIFT should not be limited to defined(_KERNEL); this > prevents userland from getting a valid PAGE_SIZE definition by including > <machine/param.h>.
Except ugh, noone should be pulling from sys/param.h for this. That's not a portable interface at all, it should find the page size at runtime by asking one of the layers on top of system calls.
