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, Oct 13, 11:47 AM
Unknown Object (File)
Mon, Oct 13, 10:25 AM
Unknown Object (File)
Sun, Sep 21, 12:56 PM
Unknown Object (File)
Wed, Sep 17, 10:00 PM
Unknown Object (File)
Wed, Sep 17, 8:27 AM
Unknown Object (File)
Jul 22 2025, 1:05 PM
Unknown Object (File)
Jul 5 2025, 7:06 PM
Unknown Object (File)
Jul 5 2025, 1:12 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