Preston Faiks commented: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5214#note_119874


The caller should not expect the FPSR to be "preserved" (identical) to what it 
was when it made the call, but it should expect that it contain the "cumulative 
exception bits" of anything that it calls.  In this case it calls a routine 
which blocks but doesn't have any errors. When it returns it should contain the 
cumulative errors for that thread of execution, NOT all threads of execution.

This is why theaddispatch.c contains this code:
```c
    **_Thread_Save_fp( executing )**;
    _Context_Switch( &executing->Registers, &heir->Registers );
   ** _Thread_Restore_fp( executing );**
```

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5214#note_119874
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to