Page MenuHomeFreeBSD

libthr for RISC-V
ClosedPublic

Authored by br on Jan 25 2016, 10:49 AM.
Tags
None
Referenced Files
F173980079: D5063.id12682.diff
Tue, Sep 29, 6:35 PM
F173980061: D5063.id12678.diff
Tue, Sep 29, 6:35 PM
F173979948: D5063.id12756.diff
Tue, Sep 29, 6:34 PM
Unknown Object (File)
Tue, Sep 29, 4:25 PM
Unknown Object (File)
Sat, Sep 26, 8:55 PM
Unknown Object (File)
Sat, Sep 26, 8:55 PM
Unknown Object (File)
Sun, Sep 20, 7:23 PM
Unknown Object (File)
Sat, Sep 19, 7:59 AM
Subscribers
None

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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
66

it is TP_OFFSET (architecture specific)

lib/libthr/arch/riscv/include/pthread_md.h
66

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
66

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.