Changeset 4177e70 in mainline for kernel/arch/mips32/src/start.S


Ignore:
Timestamp:
2018-07-17T22:09:50Z (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:
58093d9
Parents:
db51219f
Message:

mips: We use K1 register for thread pointer, so we must treat it as a preserved register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/start.S

    rdb51219f r4177e70  
    264264        mfc0 $t2, $status
    265265        sw $t3, ISTATE_OFFSET_EPC($sp)  /* save EPC */
    266         sw $k1, ISTATE_OFFSET_KT1($sp)  /* save $k1 not saved on context switch */
    267266
    268267        and $t4, $t2, REG_SAVE_MASK  /* save only KSU, EXL, ERL, IE */
     
    300299        /* restore epc + 4 */
    301300        lw $t2, ISTATE_OFFSET_EPC($sp)
    302         lw $k1, ISTATE_OFFSET_KT1($sp)
    303301        addi $t2, $t2, 4
    304302        mtc0 $t2, $epc
Note: See TracChangeset for help on using the changeset viewer.