HomeFreeBSD

arm64: Fix calculating kernel size for preload metadata

Description

arm64: Fix calculating kernel size for preload metadata

Cast &end to vm_offset_t before subtracting VM_MIN_KERNEL_ADDRESS to
ensure the resulting size is correct for PRELOAD_PUSH_VALUE.
Previously the correct size was effectively divided by sizeof(void *).

Reviewed by: andrew
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D53699

(cherry picked from commit 587490dabc649b58f0c7966e749aa80a0f16796b)

Details

Provenance
Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>Authored on Nov 13 2025, 2:57 PM
jhbCommitted on Thu, Dec 18, 10:51 PM
Reviewer
andrew
Differential Revision
D53699: arm64: Fix calculating kernel size for preload metadata
Parents
rGf2164d231f4f: apm(8): Drop MLINK to apmconf(8)
Branches
Unknown
Tags
Unknown