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
F132571606: D24457.id70668.diff
Sat, Oct 18, 2:02 AM
Unknown Object (File)
Wed, Oct 15, 6:07 AM
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)
Sep 17 2025, 10:00 PM
Unknown Object (File)
Sep 17 2025, 8:27 AM
Unknown Object (File)
Jul 22 2025, 1:05 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