Page MenuHomeFreeBSD

Preserve the inherited value of the status register in cpu_set_upcall().
ClosedPublic

Authored by jhb on Jan 6 2020, 8:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 11:09 AM
Unknown Object (File)
Aug 27 2023, 9:07 PM
Unknown Object (File)
Aug 27 2023, 2:34 PM
Unknown Object (File)
Aug 13 2023, 6:28 AM
Unknown Object (File)
Jul 7 2023, 5:54 PM
Unknown Object (File)
Jun 3 2023, 11:13 AM
Subscribers
None

Details

Summary

Instead of re-deriving the value of SR using logic similar to
exec_set_regs(), just inherit the value from the existing thread
similar to fork().

Test Plan
  • tested mips64 under cheribsd

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This probably fixes O32 binaries that use threads when run under an N64 kernel since the new threads would end up with UX set incorrectly today, but I didn't test that.

This revision is now accepted and ready to land.Jan 14 2020, 4:28 AM