Page MenuHomeFreeBSD

Tidy the _set_tp function for RISC-V.
ClosedPublic

Authored by jhb on Feb 5 2020, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 27, 9:19 PM
Unknown Object (File)
Mon, Apr 27, 9:23 AM
Unknown Object (File)
Apr 22 2026, 3:04 AM
Unknown Object (File)
Apr 9 2026, 5:56 AM
Unknown Object (File)
Apr 5 2026, 5:38 PM
Unknown Object (File)
Mar 27 2026, 7:06 AM
Unknown Object (File)
Mar 24 2026, 3:06 AM
Unknown Object (File)
Mar 22 2026, 6:31 AM
Subscribers

Details

Summary
  • Use a constant for the offset instead of a magic number.
  • Use an addi instruction that writes to tp directly instead of a mv that writes the result of a compiler-generated addi.
Test Plan
  • booted a new world in qemu, ran /usr/tests/lib/libc/tls/* tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable