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