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)
Sat, Sep 5, 11:21 AM
Unknown Object (File)
Fri, Sep 4, 6:42 AM
Unknown Object (File)
Thu, Sep 3, 6:39 PM
Unknown Object (File)
Wed, Sep 2, 4:59 AM
Unknown Object (File)
Wed, Sep 2, 12:23 AM
Unknown Object (File)
Tue, Sep 1, 1:15 PM
Unknown Object (File)
Mon, Aug 31, 5:24 AM
Unknown Object (File)
Sun, Aug 30, 5:09 PM
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