Page MenuHomeFreeBSD

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

Authored by jhb on May 20 2020, 5:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 12, 1:17 AM
Unknown Object (File)
Sun, Aug 9, 2:01 PM
Unknown Object (File)
Thu, Aug 6, 7:59 PM
Unknown Object (File)
Thu, Aug 6, 4:58 AM
Unknown Object (File)
Wed, Aug 5, 6:15 PM
Unknown Object (File)
Sun, Aug 2, 4:40 AM
Unknown Object (File)
Sun, Aug 2, 12:43 AM
Unknown Object (File)
Sat, Aug 1, 4:25 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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable