Page MenuHomeFreeBSD

Use the right type for 64-bit coprocessor registers.
ClosedPublic

Authored by jhb on Apr 16 2020, 11:24 PM.
Tags
None
Referenced Files
F148676215: D24457.diff
Thu, Mar 19, 1:39 PM
F148633455: D24457.diff
Thu, Mar 19, 6:41 AM
Unknown Object (File)
Sun, Mar 1, 4:26 PM
Unknown Object (File)
Sat, Feb 21, 11:52 PM
Unknown Object (File)
Feb 2 2026, 9:47 PM
Unknown Object (File)
Dec 6 2025, 8:26 PM
Unknown Object (File)
Nov 29 2025, 3:08 AM
Unknown Object (File)
Nov 27 2025, 8:31 AM
Subscribers

Details

Summary

The use of "int" here caused the compiler to believe that it needs to
insert a "sll $n, $n, 0" to sign extend as part of the implicit cast to
uint64_t.

Obtained from: CheriBSD

Test Plan
  • built mips tinderbox kernels, also has been in cheribsd

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable