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)
Wed, Sep 23, 10:11 AM
Unknown Object (File)
Wed, Sep 23, 7:45 AM
Unknown Object (File)
Tue, Sep 22, 1:54 PM
Unknown Object (File)
Tue, Sep 22, 7:59 AM
Unknown Object (File)
Mon, Sep 21, 9:16 PM
Unknown Object (File)
Mon, Sep 21, 8:32 PM
Unknown Object (File)
Sun, Sep 20, 4:45 PM
Unknown Object (File)
Fri, Sep 18, 6:51 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