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, Apr 15, 3:01 PM
Unknown Object (File)
Mon, Apr 6, 4:24 PM
Unknown Object (File)
Sat, Apr 4, 3:17 AM
Unknown Object (File)
Thu, Mar 26, 9:48 AM
Unknown Object (File)
Tue, Mar 24, 9:57 PM
Unknown Object (File)
Tue, Mar 24, 4:00 AM
Unknown Object (File)
Mar 21 2026, 1:27 AM
Unknown Object (File)
Mar 20 2026, 2:44 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