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
F168004352: D24931.id.diff
Tue, Aug 25, 9:08 PM
F167997161: D24931.id72050.diff
Tue, Aug 25, 8:18 PM
F167920290: D24931.id72034.diff
Tue, Aug 25, 10:45 AM
Unknown Object (File)
Tue, Aug 25, 12:40 AM
Unknown Object (File)
Sun, Aug 23, 12:07 PM
Unknown Object (File)
Sun, Aug 23, 8:41 AM
Unknown Object (File)
Sun, Aug 23, 12:40 AM
Unknown Object (File)
Wed, Aug 12, 1:17 AM

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