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
F87278672: D23521.id67835.diff
Mon, Jul 1, 4:11 AM
Unknown Object (File)
Wed, Jun 26, 9:09 PM
Unknown Object (File)
May 18 2024, 3:04 PM
Unknown Object (File)
Mar 19 2024, 2:00 PM
Unknown Object (File)
Jan 6 2024, 4:44 PM
Unknown Object (File)
Dec 20 2023, 6:41 AM
Unknown Object (File)
Nov 10 2023, 1:44 AM
Unknown Object (File)
Nov 8 2023, 1:40 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