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, May 8, 3:34 AM
Unknown Object (File)
Tue, May 7, 9:25 PM
Unknown Object (File)
Tue, May 7, 9:25 PM
Unknown Object (File)
Tue, May 7, 9:25 PM
Unknown Object (File)
Tue, May 7, 5:41 PM
Unknown Object (File)
Tue, May 7, 12:11 PM
Unknown Object (File)
Wed, Apr 17, 5:41 AM
Unknown Object (File)
Mar 23 2024, 3:46 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