Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/fpu_context.S

    rb66cc97 r5a42886  
    2727#
    2828
    29 #include <abi/asmtool.h>
    3029#include <arch/asm/regname.h>
    3130#include <arch/fpu_context_struct.h>
     
    3332
    3433.text
     34
     35.global fpu_context_save
     36.global fpu_context_restore
     37.global fpu_init
     38.global fpu_enable
     39.global fpu_disable
    3540
    3641.macro FPU_CONTEXT_STORE r
     
    104109.endm
    105110
    106 FUNCTION_BEGIN(fpu_context_save)
     111fpu_context_save:
    107112        FPU_CONTEXT_STORE r3
    108113       
     
    111116       
    112117        blr
    113 FUNCTION_END(fpu_context_save)
    114118
    115 FUNCTION_BEGIN(fpu_context_restore)
     119fpu_context_restore:
    116120        lfd fr0, FPU_CONTEXT_OFFSET_FPSCR(r3)
    117121        mtfsf 0xff, fr0
     
    120124       
    121125        blr
    122 FUNCTION_END(fpu_context_restore)
    123126
    124 FUNCTION_BEGIN(fpu_init)
     127fpu_init:
    125128        mfmsr r0
    126129        ori r0, r0, MSR_FP
     
    134137       
    135138        blr
    136 FUNCTION_END(fpu_init)
    137139
    138 FUNCTION_BEGIN(fpu_enable)
     140fpu_enable:
    139141        mfmsr r0
    140142        ori r0, r0, MSR_FP
     
    142144        isync
    143145        blr
    144 FUNCTION_END(fpu_enable)
    145146
    146 FUNCTION_BEGIN(fpu_disable)
     147fpu_disable:
    147148        mfmsr r0
    148149        li r3, MSR_FP
     
    151152        isync
    152153        blr
    153 FUNCTION_END(fpu_disable)
Note: See TracChangeset for help on using the changeset viewer.