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
F85580639: D24457.diff
Fri, Jun 7, 8:10 PM
Unknown Object (File)
Sat, May 25, 4:52 AM
Unknown Object (File)
Fri, May 24, 4:44 PM
Unknown Object (File)
Fri, May 24, 2:24 PM
Unknown Object (File)
May 1 2024, 11:09 PM
Unknown Object (File)
Apr 28 2024, 11:19 AM
Unknown Object (File)
Feb 22 2024, 2:24 AM
Unknown Object (File)
Feb 15 2024, 2:29 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