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)
Feb 18 2025, 5:20 PM
Unknown Object (File)
Feb 10 2025, 1:04 AM
Unknown Object (File)
Feb 8 2025, 11:42 PM
Unknown Object (File)
Feb 8 2025, 9:01 PM
Unknown Object (File)
Feb 8 2025, 1:39 PM
Unknown Object (File)
Nov 29 2024, 9:29 PM
Unknown Object (File)
Nov 25 2024, 2:39 PM
Unknown Object (File)
Nov 25 2024, 5:54 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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 29190
Build 27121: arc lint + arc unit