Changeset 459 for trunk/hal/tsar_mips32/core/hal_special.c
- Timestamp:
- Aug 13, 2018, 1:43:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_special.c
r457 r459 113 113 void hal_fpu_enable() 114 114 { 115 // set CU1 bit (FPU enable) in c0_sr 115 116 asm volatile 116 117 ( ".set noat \n" … … 120 121 "mtc0 $27, $12 \n" 121 122 ".set at \n" ); 123 124 // set CU1 bit in calling thread UZONE 125 uint32_t * uzone = CURRENT_THREAD->uzone_current; 126 uzone[34] |= 0x20000000; 122 127 } 123 128 … … 125 130 void hal_fpu_disable() 126 131 { 132 // reset CU1 bit (FPU enable) in c0_sr 127 133 asm volatile 128 134 ( ".set noat \n" … … 133 139 "mtc0 $27, $12 \n" 134 140 ".set at \n"); 141 142 // reset CU1 bit in calling thread UZONE 143 uint32_t * uzone = CURRENT_THREAD->uzone_current; 144 uzone[34] &= 0xDFFFFFFF; 135 145 } 136 146
Note: See TracChangeset
for help on using the changeset viewer.