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

Details

Provenance
Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>Authored on Thu, Nov 13, 2:57 PM
jhbCommitted on Thu, Nov 13, 2:57 PM
Reviewer
andrew
Differential Revision
D53699: arm64: Fix calculating kernel size for preload metadata
Parents
rGb19e61f223a1: sound: Retire SND_DIAGNOSTIC PCM locking macros
Branches
Unknown
Tags
Unknown