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, May 1, 11:09 PM
Unknown Object (File)
Sun, Apr 28, 11:19 AM
Unknown Object (File)
Feb 22 2024, 2:24 AM
Unknown Object (File)
Feb 15 2024, 2:29 AM
Unknown Object (File)
Dec 23 2023, 1:12 AM
Unknown Object (File)
Dec 19 2023, 11:54 PM
Unknown Object (File)
Nov 6 2023, 9:45 PM
Unknown Object (File)
Oct 27 2023, 12:17 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