Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#3544 fix: risc-v TCB offset from tp register is negative according …
…to psABI (#6147) According to RISCV processor specific application binary interface, psABI : https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc "tp containing the address one past the end of the TCB." further documentation for that can be found in glibc sources sysdeps/riscv/nptl/tls.h: /* Return the address of the dtv for the current thread. */ (((tcbhead_t *) (READ_THREAD_POINTER () - TLS_TCB_OFFSET))[-1].dtv) --------- Co-authored-by: Vasilis Flouris <vflouris@ics.forth.gr>
- Loading branch information