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