Ignore:
Timestamp:
Aug 10, 2017, 11:21:32 AM (5 years ago)
Author:
max@…
Message:

Synchronize tls_intr between context switches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_cpu.S

    r343 r359  
    196196        movq    CTX_TF(%r13),%rsp
    197197        addq    $TF_SIZE,%rsp   /* end of the structure */
     198
     199        /*
     200         * Save the TLS intr flag, and set the new one.
     201         */
     202        movq    TLSVAR(INTR),%rax
     203        movq    %rax,CTX_INTR(%r13)
     204        movq    CTX_INTR(%r12),%rax
     205        movq    %rax,TLSVAR(INTR)
    198206
    199207        /* Build the trap frame */
Note: See TracChangeset for help on using the changeset viewer.