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
F153443922: D24931.id72034.diff
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
Unknown Object (File)
Thu, Apr 9, 12:45 PM
Unknown Object (File)
Wed, Apr 8, 5:18 AM
Unknown Object (File)
Wed, Apr 8, 2:47 AM
Unknown Object (File)
Mon, Apr 6, 4:58 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