Changeset bf0716f in mainline


Ignore:
Timestamp:
2025-01-24T23:50:30Z (11 days ago)
Author:
Matěj Volf <git@…>
Children:
328b89f
Parents:
eff458d
git-author:
Matěj Volf <git@…> (2025-01-24 21:46:38)
git-committer:
Matěj Volf <git@…> (2025-01-24 23:50:30)
Message:

explain why tcb_t is added at the end of tls allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/module.c

    reff458d rbf0716f  
    403403        rtld->tls_size = ALIGN_UP(rtld->tls_size, rtld->tls_align);
    404404
    405         /* Space for the TCB. */
     405        /* Space for the TCB.
     406         * Later, the TLS zero offset is equal to the pointer to tcb_t, so
     407         * adding the sizeof(tcb_t) block AFTER we calculated the alignment
     408         * of the remainder above is correct.
     409         */
    406410        rtld->tls_size += sizeof(tcb_t);
    407411#endif
Note: See TracChangeset for help on using the changeset viewer.