Changeset 0c27956 in mainline for kernel/arch/sparc64/src/context.S


Ignore:
Timestamp:
2018-08-02T16:25:48Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7cd7a8d
Parents:
3b10ae36
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-02 16:24:22)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-02 16:25:48)
Message:

Fix sparc64: context must save the thread pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/context.S

    r3b10ae36 r0c27956  
    6363        stx %l6, [%o0 + CONTEXT_OFFSET_L6]
    6464        stx %l7, [%o0 + CONTEXT_OFFSET_L7]
     65        stx %g7, [%o0 + CONTEXT_OFFSET_TP]
    6566        retl
    6667        mov 1, %o0              ! context_save_arch returns 1
     
    103104        ldx [%o0 + CONTEXT_OFFSET_L6], %l6
    104105        ldx [%o0 + CONTEXT_OFFSET_L7], %l7
     106        ldx [%o0 + CONTEXT_OFFSET_TP], %g7
    105107        retl
    106108        xor %o0, %o0, %o0       ! context_restore_arch returns 0
Note: See TracChangeset for help on using the changeset viewer.