We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0705aa4 commit cea0fc7Copy full SHA for cea0fc7
1 file changed
libogc/lwp_threads.c
@@ -216,7 +216,10 @@ void __thread_dispatch_fp(void)
216
#ifdef _LWPTHREADS_DEBUG
217
__lwp_dumpcontext_fp(exec,_thr_allocated_fp);
218
#endif
219
- if(!__lwp_thread_isallocatedfp(exec)) {
+ if(__lwp_isr_in_progress()) {
220
+ if(_thr_allocated_fp) _cpu_context_save_fp(&_thr_allocated_fp->context);
221
+ _thr_allocated_fp = NULL;
222
+ } else if(!__lwp_thread_isallocatedfp(exec)) {
223
if(_thr_allocated_fp) _cpu_context_save_fp(&_thr_allocated_fp->context);
224
_cpu_context_restore_fp(&exec->context);
225
_thr_allocated_fp = exec;
0 commit comments