Changeset 27ab6a7 in mainline for kernel/arch/ia32/src/fpu_context.c
- Timestamp:
- 2006-09-09T09:33:29Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b0f294
- Parents:
- ab1ae2d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/fpu_context.c
rab1ae2d9 r27ab6a7 27 27 */ 28 28 29 29 /** @addtogroup ia32 30 30 * @{ 31 31 */ … … 40 40 typedef void (*fpu_context_function)(fpu_context_t *fctx); 41 41 42 static fpu_context_function fpu_save,fpu_restore; 43 44 42 static fpu_context_function fpu_save, fpu_restore; 45 43 46 44 static void fpu_context_f_save(fpu_context_t *fctx) … … 89 87 void fpu_fsr(void) 90 88 { 91 fpu_save =fpu_context_f_save;92 fpu_restore =fpu_context_f_restore;89 fpu_save = fpu_context_f_save; 90 fpu_restore = fpu_context_f_restore; 93 91 } 94 95 96 92 97 93 void fpu_context_save(fpu_context_t *fctx) … … 105 101 } 106 102 107 108 109 103 void fpu_init() 110 104 { 111 uint32_t help0 =0,help1=0;105 uint32_t help0 = 0, help1 = 0; 112 106 __asm__ volatile ( 113 107 "fninit;\n" … … 117 111 "mov %1,%0;\n" 118 112 "ldmxcsr %0;\n" 119 : "+m"(help0),"+r"(help1)120 : "i"(0x1f80)113 : "+m" (help0), "+r" (help1) 114 : "i" (0x1f80) 121 115 ); 122 116 } 123 117 124 118 /** @} 125 119 */ 126
Note:
See TracChangeset
for help on using the changeset viewer.