Page MenuHomeFreeBSD

libthr for RISC-V
ClosedPublic

Authored by br on Jan 25 2016, 10:49 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Wed, Oct 1, 5:23 PM
Unknown Object (File)
Wed, Oct 1, 3:25 PM
Unknown Object (File)
Wed, Oct 1, 9:41 AM
Unknown Object (File)
Wed, Oct 1, 6:01 AM
Unknown Object (File)
Tue, Sep 30, 10:59 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.