Changes in kernel/arch/mips32/src/asm.S [45f7449:0407636] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/asm.S
r45f7449 r0407636 27 27 */ 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/asm/regname.h> 31 #include <arch/fpu_context_struct.h> 30 32 31 33 .text … … 47 49 .set nomacro 48 50 49 .global asm_delay_loop 50 asm_delay_loop: 51 FUNCTION_BEGIN(asm_delay_loop) 51 52 j $31 52 53 nop 53 54 .global cpu_halt 55 cpu_halt: 54 FUNCTION_END(asm_delay_loop) 55 56 FUNCTION_BEGIN(cpu_halt) 56 57 j cpu_halt 57 58 nop 58 59 .global memcpy_from_uspace 60 .global memcpy_to_uspace 61 .global memcpy_from_uspace_failover_address 62 .global memcpy_to_uspace_failover_address 63 memcpy_from_uspace: 64 memcpy_to_uspace: 59 FUNCTION_END(cpu_halt) 60 61 FUNCTION_BEGIN(memcpy_from_uspace) 62 FUNCTION_BEGIN(memcpy_to_uspace) 65 63 move $t2, $a0 /* save dst */ 66 64 … … 128 126 jr $ra 129 127 move $v0, $t2 130 131 memcpy_from_uspace_failover_address: 132 memcpy_to_uspace_failover_address: 128 FUNCTION_END(memcpy_from_uspace) 129 FUNCTION_END(memcpy_to_uspace) 130 131 SYMBOL(memcpy_from_uspace_failover_address) 132 SYMBOL(memcpy_to_uspace_failover_address) 133 133 jr $ra 134 134 move $v0, $zero … … 136 136 .macro fpu_gp_save reg ctx 137 137 mfc1 $t0, $\reg 138 sw $t0, \reg * 4(\ctx)138 sw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx) 139 139 .endm 140 140 141 141 .macro fpu_gp_restore reg ctx 142 lw $t0, \reg * 4(\ctx)142 lw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx) 143 143 mtc1 $t0, $\reg 144 144 .endm … … 146 146 .macro fpu_ct_save reg ctx 147 147 cfc1 $t0, $1 148 sw $t0, (\reg + 32) * 4(\ctx)148 sw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEXT_CREGS_ITEM_SIZE(\ctx) 149 149 .endm 150 150 151 151 .macro fpu_ct_restore reg ctx 152 lw $t0, (\reg + 32) * 4(\ctx)152 lw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEZT_CREGS_ITEM_SIZE(\ctx) 153 153 ctc1 $t0, $\reg 154 154 .endm 155 155 156 .global fpu_context_save 157 fpu_context_save: 156 FUNCTION_BEGIN(fpu_context_save) 158 157 #ifdef CONFIG_FPU 159 158 fpu_gp_save 0, $a0 … … 224 223 j $ra 225 224 nop 226 227 .global fpu_context_restore 228 fpu_context_restore: 225 FUNCTION_END(fpu_context_save) 226 227 FUNCTION_BEGIN(fpu_context_restore) 229 228 #ifdef CONFIG_FPU 230 229 fpu_gp_restore 0, $a0 … … 295 294 j $ra 296 295 nop 297 298 .global early_putchar 299 early_putchar: 296 FUNCTION_END(fpu_context_restore) 297 298 FUNCTION_BEGIN(early_putchar) 300 299 j $ra 301 300 nop 301 FUNCTION_END(early_putchar)
Note:
See TracChangeset
for help on using the changeset viewer.