Changes in kernel/arch/mips32/src/asm.S [5301662:45f7449] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/asm.S
r5301662 r45f7449 28 28 29 29 #include <arch/asm/regname.h> 30 #include <arch/fpu_context_struct.h>31 30 32 31 .text … … 137 136 .macro fpu_gp_save reg ctx 138 137 mfc1 $t0, $\reg 139 sw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx)138 sw $t0, \reg * 4(\ctx) 140 139 .endm 141 140 142 141 .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) 144 143 mtc1 $t0, $\reg 145 144 .endm … … 147 146 .macro fpu_ct_save reg ctx 148 147 cfc1 $t0, $1 149 sw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEXT_CREGS_ITEM_SIZE(\ctx)148 sw $t0, (\reg + 32) * 4(\ctx) 150 149 .endm 151 150 152 151 .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) 154 153 ctc1 $t0, $\reg 155 154 .endm
Note:
See TracChangeset
for help on using the changeset viewer.