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