HomeFreeBSD

linuxkpi: Fix the definition of BITS_PER_LONG

Description

linuxkpi: Fix the definition of BITS_PER_LONG

Don't use LP64 to decide the value, as it gives the wrong result on
CHERI platforms. Just define it in terms of SIZEOF_LONG. Make a
similar adjustment for BITS_PER_LONG_LONG while here.

Reviewed by: bz, dumbbell, emaste
MFC after: 1 week
Sponsored by: CHERI Research Centre (EPSRC grant UKRI3001)
Differential Revision: https://reviews.freebsd.org/D53135

Details

Provenance
markjAuthored on Wed, Oct 22, 2:04 PM
Reviewer
bz
Differential Revision
D53135: linuxkpi: Fix the definition of BITS_PER_LONG
Parents
rG5f2df8f83128: committers-src: add self
Branches
Unknown
Tags
Unknown