Page MenuHomeFreeBSD

libthr: Use <machine/tls.h> for most MD TLS details.
ClosedPublic

Authored by jhb on Dec 8 2021, 9:52 PM.
Tags
None
Referenced Files
F102891344: D33352.diff
Mon, Nov 18, 9:28 AM
Unknown Object (File)
Sep 25 2024, 2:53 PM
Unknown Object (File)
Sep 18 2024, 6:44 PM
Unknown Object (File)
Sep 17 2024, 11:21 AM
Unknown Object (File)
Sep 11 2024, 4:41 AM
Unknown Object (File)
Sep 11 2024, 4:41 AM
Unknown Object (File)
Sep 7 2024, 1:31 PM
Unknown Object (File)
Sep 4 2024, 8:28 PM
Subscribers

Details

Summary

Note that on amd64 this effectively removes the unused tcb_spare field
from the end of struct tcb since the definition of struct tcb in
<x86/tls.h> does not include that field.

Sponsored by: The University of Cambridge, Google Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43252
Build 40140: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Dec 8 2021, 9:52 PM
kib added inline comments.
lib/libthr/arch/mips/include/pthread_md.h
46

Is this check practically needed?

This revision is now accepted and ready to land.Dec 9 2021, 1:01 AM
lib/libthr/arch/mips/include/pthread_md.h
46

That's a good question. x86 does not check this and assumes that a TCB is always present.