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
F153918763: D24931.diff
Fri, Apr 24, 7:21 PM
Unknown Object (File)
Fri, Apr 24, 10:13 AM
Unknown Object (File)
Fri, Apr 24, 5:20 AM
Unknown Object (File)
Thu, Apr 23, 8:08 PM
Unknown Object (File)
Tue, Apr 21, 5:16 AM
Unknown Object (File)
Mon, Apr 20, 9:54 AM
Unknown Object (File)
Fri, Apr 17, 4:49 AM
Unknown Object (File)
Sat, Apr 11, 6:08 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