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, Apr 26, 5:32 AM
Unknown Object (File)
Feb 8 2024, 6:28 PM
Unknown Object (File)
Jan 26 2024, 8:22 AM
Unknown Object (File)
Jan 26 2024, 8:22 AM
Unknown Object (File)
Jan 26 2024, 8:22 AM
Unknown Object (File)
Jan 26 2024, 8:22 AM
Unknown Object (File)
Jan 26 2024, 5:35 AM
Unknown Object (File)
Jan 14 2024, 1:30 PM
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
65

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

it is TP_OFFSET (architecture specific)

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

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

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.