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
F145678768: D23521.id.diff
Mon, Feb 23, 12:48 AM
Unknown Object (File)
Sat, Feb 21, 5:08 AM
Unknown Object (File)
Sat, Feb 14, 9:16 AM
Unknown Object (File)
Sun, Feb 8, 12:35 PM
Unknown Object (File)
Sat, Feb 7, 5:35 PM
Unknown Object (File)
Sat, Jan 31, 12:34 AM
Unknown Object (File)
Jan 1 2026, 11:37 PM
Unknown Object (File)
Dec 11 2025, 1:09 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