Page MenuHomeFreeBSD

arm64: Stop trashing the padding after boot_el
ClosedPublic

Authored by andrew on Aug 19 2026, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 21, 9:36 AM
Unknown Object (File)
Sat, Sep 19, 10:48 PM
Unknown Object (File)
Thu, Sep 17, 8:09 AM
Unknown Object (File)
Wed, Sep 16, 12:29 PM
Unknown Object (File)
Tue, Sep 15, 8:17 AM
Unknown Object (File)
Tue, Sep 15, 6:04 AM
Unknown Object (File)
Tue, Sep 15, 4:35 AM
Unknown Object (File)
Sun, Sep 13, 9:10 AM
Subscribers

Details

Summary

When building struct arm64_bootparams to pass to initarm we store the
boot_el field as a 64-bit value, however it is defined as an int which
is 32-bits.

Switch to store using the 'w' register as this will store a correctly
sized value.

Previously this would trash the trailing padding, so is only a
correctness issue.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable