Page MenuHomeFreeBSD

Save and restore floating point registers in get/set_mcontext().
ClosedPublic

Authored by jhb on Jan 16 2020, 10:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 4:36 AM
Unknown Object (File)
Wed, Jan 22, 9:41 AM
Unknown Object (File)
Sun, Jan 19, 3:41 PM
Unknown Object (File)
Sat, Jan 11, 6:09 AM
Unknown Object (File)
Tue, Jan 7, 9:55 AM
Unknown Object (File)
Dec 9 2024, 5:53 PM
Unknown Object (File)
Dec 3 2024, 5:05 PM
Unknown Object (File)
Nov 23 2024, 1:06 AM
Subscribers

Details

Summary

arm64 and riscv were only saving and restoring floating point
registers for sendsig() and sys_sigreturn(), but not for getcontext(),
setcontext(), and swapcontext().

While here, remove a pointless check for uap being NULL from
sys_sigreturn().

Test Plan
  • booted riscv64 under spike which should exercise sendsig/sigreturn
  • have not tested arm64

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 28711
Build 26726: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 17 2020, 4:45 PM

Just curious, why does spike in particular exercise sendsig/sigreturn?

Just curious, why does spike in particular exercise sendsig/sigreturn?

I'm just assuming that booting multiuser involves catching at least one signal somewhere along the way.