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)
Wed, May 6, 11:29 PM
Unknown Object (File)
Sun, May 3, 3:48 AM
Unknown Object (File)
Sun, Apr 26, 5:35 AM
Unknown Object (File)
Apr 15 2026, 3:01 PM
Unknown Object (File)
Apr 6 2026, 4:24 PM
Unknown Object (File)
Apr 4 2026, 3:17 AM
Unknown Object (File)
Mar 26 2026, 9:48 AM
Unknown Object (File)
Mar 24 2026, 9:57 PM
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