Page MenuHomeFreeBSD

Simplify hot-patching cpu_switch() for lack of UserLocal register.
ClosedPublic

Authored by jhb on Wed, May 20, 5:21 PM.

Details

Summary

Rather than walking all of cpu_switch looking for the sequence of
instructions to patch, add a global label at the location that needs
the patch applied.

Test Plan
  • booted mips64 under QEMU which does not implement UL and requires the hot patching to work

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb requested review of this revision.Wed, May 20, 5:21 PM
jhb created this revision.
This revision is now accepted and ready to land.Wed, May 20, 5:53 PM
brooks accepted this revision.Wed, May 20, 6:34 PM
This revision was automatically updated to reflect the committed changes.