Changes in kernel/arch/ppc32/src/fpu_context.S [b66cc97:5a42886] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/fpu_context.S
rb66cc97 r5a42886 27 27 # 28 28 29 #include <abi/asmtool.h>30 29 #include <arch/asm/regname.h> 31 30 #include <arch/fpu_context_struct.h> … … 33 32 34 33 .text 34 35 .global fpu_context_save 36 .global fpu_context_restore 37 .global fpu_init 38 .global fpu_enable 39 .global fpu_disable 35 40 36 41 .macro FPU_CONTEXT_STORE r … … 104 109 .endm 105 110 106 FUNCTION_BEGIN(fpu_context_save) 111 fpu_context_save: 107 112 FPU_CONTEXT_STORE r3 108 113 … … 111 116 112 117 blr 113 FUNCTION_END(fpu_context_save)114 118 115 FUNCTION_BEGIN(fpu_context_restore) 119 fpu_context_restore: 116 120 lfd fr0, FPU_CONTEXT_OFFSET_FPSCR(r3) 117 121 mtfsf 0xff, fr0 … … 120 124 121 125 blr 122 FUNCTION_END(fpu_context_restore)123 126 124 FUNCTION_BEGIN(fpu_init) 127 fpu_init: 125 128 mfmsr r0 126 129 ori r0, r0, MSR_FP … … 134 137 135 138 blr 136 FUNCTION_END(fpu_init)137 139 138 FUNCTION_BEGIN(fpu_enable) 140 fpu_enable: 139 141 mfmsr r0 140 142 ori r0, r0, MSR_FP … … 142 144 isync 143 145 blr 144 FUNCTION_END(fpu_enable)145 146 146 FUNCTION_BEGIN(fpu_disable) 147 fpu_disable: 147 148 mfmsr r0 148 149 li r3, MSR_FP … … 151 152 isync 152 153 blr 153 FUNCTION_END(fpu_disable)
Note:
See TracChangeset
for help on using the changeset viewer.