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
F103273203: D23521.id67901.diff
Fri, Nov 22, 10:19 PM
F103252109: D23521.diff
Fri, Nov 22, 3:58 PM
F103217305: D23521.id67901.diff
Fri, Nov 22, 8:12 AM
Unknown Object (File)
Thu, Nov 21, 5:53 AM
Unknown Object (File)
Wed, Nov 20, 1:06 AM
Unknown Object (File)
Wed, Nov 20, 12:20 AM
Unknown Object (File)
Tue, Nov 19, 3:37 PM
Unknown Object (File)
Tue, Nov 19, 8:05 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