Page MenuHomeFreeBSD

arm64: Stop trashing the padding after boot_el
ClosedPublic

Authored by andrew on Wed, Aug 19, 2:29 PM.
Tags
None
Referenced Files
F171765953: D58988.id184888.diff
Sun, Sep 13, 9:10 AM
F171708287: D58988.diff
Sat, Sep 12, 9:57 PM
Unknown Object (File)
Sat, Sep 12, 5:14 AM
Unknown Object (File)
Thu, Sep 10, 1:26 PM
Unknown Object (File)
Wed, Sep 9, 8:42 PM
Unknown Object (File)
Tue, Sep 8, 5:35 PM
Unknown Object (File)
Tue, Sep 8, 5:04 AM
Unknown Object (File)
Mon, Sep 7, 7:05 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