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, Aug 12, 10:18 PM
Unknown Object (File)
Tue, Aug 11, 2:12 PM
Unknown Object (File)
Tue, Aug 11, 11:03 AM
Unknown Object (File)
Mon, Aug 10, 7:34 AM
Unknown Object (File)
Sat, Aug 8, 2:56 AM
Unknown Object (File)
Jul 18 2026, 2:21 AM
Unknown Object (File)
Jul 13 2026, 1:03 AM
Unknown Object (File)
Jul 7 2026, 2:06 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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 30549
Build 28295: arc lint + arc unit