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
Unknown Object (File)
Tue, Mar 24, 10:54 PM
Unknown Object (File)
Wed, Mar 11, 2:38 PM
Unknown Object (File)
Sat, Mar 7, 2:32 PM
Unknown Object (File)
Sat, Mar 7, 5:13 AM
Unknown Object (File)
Feb 9 2026, 3:31 AM
Unknown Object (File)
Jan 9 2026, 9:40 AM
Unknown Object (File)
Jan 8 2026, 5:05 AM
Unknown Object (File)
Jan 8 2026, 12:45 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.