Ignore:
Timestamp:
Aug 7, 2017, 3:11:45 PM (7 years ago)
Author:
max@…
Message:

Add support for context switch - not tested yet, due to some other bugs in
the mapper. This cswitch is similar to that of TSAR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_segmentation.h

    r336 r339  
    154154        uint32_t tls_gid;
    155155        uint32_t tls_lid;
     156        uint64_t tls_rsp0; /* pointer for fast access */
    156157        void *tls_thr;
    157158        reg_t tls_intr;
    158         void *tls_tf;
     159        void *tls_tf;     /* debug only */
    159160} __packed;
    160161typedef struct tls tls_t;
     
    169170
    170171#endif /* !x86_ASM */
     172
     173/* TLS offsets */
     174#define TLS_SELF        0
     175#define TLS_GID         8
     176#define TLS_LID         12
     177#define TLS_RSP0        16
    171178
    172179/* system segments and gate types */
Note: See TracChangeset for help on using the changeset viewer.