Repository navigation
Commit 6de5a8a
um: fix FPU state preservation around signal handlers
This patch makes UML saves/restores FPU state from/to the fpstate in
pt_regs when setting up or returning from a signal stack, rather than
calling ptrace directly. This ensures that FPU state is correctly
preserved around signal handlers in a multi-threaded scenario.
Signed-off-by: Eli Cooper <elicooper@gmx.com>1 parent 44549e8 commit 6de5a8a
1 file changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
| |||
325 | 315 | | |
326 | 316 | | |
327 | 317 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 318 | + | |
| 319 | + | |
332 | 320 | | |
333 | 321 | | |
334 | 322 | | |
| |||
0 commit comments