Page MenuHomeFreeBSD

libthr for RISC-V
ClosedPublic

Authored by br on Jan 25 2016, 10:49 AM.
Tags
None
Referenced Files
F108388592: D5063.diff
Fri, Jan 24, 9:36 AM
Unknown Object (File)
Sat, Jan 18, 11:07 AM
Unknown Object (File)
Dec 24 2024, 3:18 AM
Unknown Object (File)
Dec 7 2024, 7:36 PM
Unknown Object (File)
Dec 7 2024, 7:36 PM
Unknown Object (File)
Dec 7 2024, 7:36 PM
Unknown Object (File)
Dec 7 2024, 7:36 PM
Unknown Object (File)
Dec 7 2024, 7:07 PM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br retitled this revision from to libthr for RISC-V.
br updated this object.
br edited the test plan for this revision. (Show Details)
br added reviewers: andrew, emaste.
lib/libthr/arch/riscv/include/pthread_md.h
64 ↗(On Diff #12678)

Why + 0x10?

unmagic 0x10, which is TP_OFFSET

br marked an inline comment as done.Jan 25 2016, 2:03 PM
br added inline comments.
lib/libthr/arch/riscv/include/pthread_md.h
65 ↗(On Diff #12682)

it is TP_OFFSET (architecture specific)

lib/libthr/arch/riscv/include/pthread_md.h
65 ↗(On Diff #12682)

Why is it needed? rtld-elf already takes the size of struct tcb into account.

br marked an inline comment as done.Jan 25 2016, 3:38 PM
br added inline comments.
lib/libthr/arch/riscv/include/pthread_md.h
65 ↗(On Diff #12682)

So compiler expects that tp register points to the first static TLS block. In variant I it is located just after struct tcb.
We do the same in lib/libc/riscv/gen/_set_tp.c

This revision was automatically updated to reflect the committed changes.