Ignore:
File:
1 edited

Legend:

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

    r5301662 r45f7449  
    2828
    2929#include <arch/asm/regname.h>
    30 #include <arch/fpu_context_struct.h>
    3130
    3231.text
     
    137136.macro fpu_gp_save reg ctx
    138137        mfc1 $t0, $\reg
    139         sw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx)
     138        sw $t0, \reg * 4(\ctx)
    140139.endm
    141140
    142141.macro fpu_gp_restore reg ctx
    143         lw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx)
     142        lw $t0, \reg * 4(\ctx)
    144143        mtc1 $t0, $\reg
    145144.endm
     
    147146.macro fpu_ct_save reg ctx
    148147        cfc1 $t0, $1
    149         sw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEXT_CREGS_ITEM_SIZE(\ctx)
     148        sw $t0, (\reg + 32) * 4(\ctx)
    150149.endm
    151150
    152151.macro fpu_ct_restore reg ctx
    153         lw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEZT_CREGS_ITEM_SIZE(\ctx)
     152        lw $t0, (\reg + 32) * 4(\ctx)
    154153        ctc1 $t0, $\reg
    155154.endm
Note: See TracChangeset for help on using the changeset viewer.