Changeset 4177e70 in mainline for kernel/arch/mips32/include


Ignore:
Timestamp:
2018-07-17T22:09:50Z (7 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/include/arch/context_struct.h

    rdb51219f r4177e70  
    4242#define CONTEXT_OFFSET_S8  0x28
    4343#define CONTEXT_OFFSET_GP  0x2c
    44 #define CONTEXT_OFFSET_IPL 0x30
    45 #define CONTEXT_SIZE       0x34
     44#define CONTEXT_OFFSET_TP  0x30
     45#define CONTEXT_OFFSET_IPL 0x34
     46#define CONTEXT_SIZE       0x38
    4647
    4748#ifndef __ASSEMBLER__
     
    6364        uint32_t s8;
    6465        uint32_t gp;
     66        /* We use the K1 register for userspace thread pointer. */
     67        uint32_t tp;
    6568        ipl_t ipl;
    6669} context_t;
Note: See TracChangeset for help on using the changeset viewer.