Ignore:
File:
1 edited

Legend:

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

    r0407636 r45f7449  
    2727 */
    2828
    29 #include <abi/asmtool.h>
    3029#include <arch/asm/regname.h>
    31 #include <arch/fpu_context_struct.h>
    3230
    3331.text
     
    4947.set nomacro
    5048
    51 FUNCTION_BEGIN(asm_delay_loop)
     49.global asm_delay_loop
     50asm_delay_loop:
    5251        j $31
    5352        nop
    54 FUNCTION_END(asm_delay_loop)
    55 
    56 FUNCTION_BEGIN(cpu_halt)
     53
     54.global cpu_halt
     55cpu_halt:
    5756        j cpu_halt
    5857        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
     63memcpy_from_uspace:
     64memcpy_to_uspace:
    6365        move $t2, $a0  /* save dst */
    6466       
     
    126128                jr $ra
    127129                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
     131memcpy_from_uspace_failover_address:
     132memcpy_to_uspace_failover_address:
    133133        jr $ra
    134134        move $v0, $zero
     
    136136.macro fpu_gp_save reg ctx
    137137        mfc1 $t0, $\reg
    138         sw $t0, FPU_CONTEXT_OFFSET_DREGS + \reg * FPU_CONTEXT_DREGS_ITEM_SIZE(\ctx)
     138        sw $t0, \reg * 4(\ctx)
    139139.endm
    140140
    141141.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)
    143143        mtc1 $t0, $\reg
    144144.endm
     
    146146.macro fpu_ct_save reg ctx
    147147        cfc1 $t0, $1
    148         sw $t0, FPU_CONTEXT_OFFSET_CREGS + \reg * FPU_CONTEXT_CREGS_ITEM_SIZE(\ctx)
     148        sw $t0, (\reg + 32) * 4(\ctx)
    149149.endm
    150150
    151151.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)
    153153        ctc1 $t0, $\reg
    154154.endm
    155155
    156 FUNCTION_BEGIN(fpu_context_save)
     156.global fpu_context_save
     157fpu_context_save:
    157158#ifdef CONFIG_FPU
    158159        fpu_gp_save 0, $a0
     
    223224        j $ra
    224225        nop
    225 FUNCTION_END(fpu_context_save)
    226 
    227 FUNCTION_BEGIN(fpu_context_restore)
     226
     227.global fpu_context_restore
     228fpu_context_restore:
    228229#ifdef CONFIG_FPU
    229230        fpu_gp_restore 0, $a0
     
    294295        j $ra
    295296        nop
    296 FUNCTION_END(fpu_context_restore)
    297 
    298 FUNCTION_BEGIN(early_putchar)
     297
     298.global early_putchar
     299early_putchar:
    299300        j $ra
    300301        nop
    301 FUNCTION_END(early_putchar)
Note: See TracChangeset for help on using the changeset viewer.