Changeset 320faf8e in rtems for doc


Ignore:
Timestamp:
04/17/14 05:57:09 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
782182eb
Parents:
10e613ba
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/14 05:57:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/14 06:06:40)
Message:

score: Clarify TLS support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/cpu_supplement/general.t

    r10e613ba r320faf8e  
    320320facilities mandated by the application binary interface (ABI) of the CPU
    321321architecture.  The CPU port must initialize the TLS area in the
    322 @code{_CPU_Context_Initialize} function.
     322@code{_CPU_Context_Initialize()} function.  There are support functions available
     323via @code{#include <rtems/score/tls.h>} which implement Variants I and II
     324according to Ulrich Drepper, @cite{ELF Handling For Thread-Local Storage}.
     325
     326@table @code
     327
     328@item _TLS_TCB_at_area_begin_initialize()
     329Uses Variant I, TLS offsets emitted by linker takes the TCB into account.  For
     330a reference implementation see @file{cpukit/score/cpu/arm/cpu.c}.
     331
     332@item _TLS_TCB_before_TLS_block_initialize()
     333Uses Variant I, TLS offsets emitted by linker neglects the TCB.  For a
     334reference implementation see
     335@file{c/src/lib/libcpu/powerpc/new-exceptions/cpu.c}.
     336
     337@item _TLS_TCB_after_TLS_block_initialize()
     338Uses Variant II.  For a reference implementation see
     339@file{cpukit/score/cpu/sparc/cpu.c}.
     340
     341@end table
    323342
    324343The board support package (BSP) must provide the following sections and symbols
Note: See TracChangeset for help on using the changeset viewer.