Page MenuHomeFreeBSD

arm64: Stop trashing the padding after boot_el
AcceptedPublic

Authored by andrew on Wed, Aug 19, 2:29 PM.

Details

Reviewers
manu
emaste
Group Reviewers
arm64
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75742
Build 72625: arc lint + arc unit