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)
Oct 16 2024, 4:18 AM
Unknown Object (File)
Oct 15 2024, 6:43 AM
Unknown Object (File)
Oct 10 2024, 3:11 PM
Unknown Object (File)
Sep 21 2024, 4:47 PM
Unknown Object (File)
Sep 21 2024, 10:23 AM
Unknown Object (File)
Sep 16 2024, 3:17 PM
Unknown Object (File)
Sep 15 2024, 2:31 AM
Unknown Object (File)
Sep 4 2024, 4:58 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