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
Unknown Object (File)
Mon, Jun 15, 6:58 PM
Unknown Object (File)
Mon, Jun 15, 6:22 PM
Unknown Object (File)
Thu, Jun 11, 4:45 AM
Unknown Object (File)
Mon, Jun 8, 11:02 AM
Unknown Object (File)
Wed, May 20, 8:09 AM
Unknown Object (File)
May 6 2026, 11:29 PM
Unknown Object (File)
May 3 2026, 3:48 AM
Unknown Object (File)
Apr 26 2026, 5:35 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