Page MenuHomeFreeBSD

libthr for RISC-V
ClosedPublic

Authored by br on Jan 25 2016, 10:49 AM.
Tags
None
Referenced Files
F133105594: D5063.id12682.diff
Thu, Oct 23, 12:48 AM
F133071256: D5063.id12678.diff
Wed, Oct 22, 5:15 PM
F133071252: D5063.id.diff
Wed, Oct 22, 5:15 PM
F133071251: D5063.id12756.diff
Wed, Oct 22, 5:15 PM
Unknown Object (File)
Wed, Oct 22, 4:56 AM
Unknown Object (File)
Fri, Oct 10, 1:47 AM
Unknown Object (File)
Wed, Oct 1, 6:42 PM
Unknown Object (File)
Wed, Oct 1, 6:41 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.