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)
Fri, Nov 14, 2:38 AM
Unknown Object (File)
Fri, Nov 14, 1:34 AM
Unknown Object (File)
Fri, Nov 14, 1:30 AM
Unknown Object (File)
Thu, Nov 13, 1:29 AM
Unknown Object (File)
Thu, Nov 13, 1:03 AM
Unknown Object (File)
Wed, Oct 29, 10:09 PM
Unknown Object (File)
Mon, Oct 27, 4:07 AM
Unknown Object (File)
Oct 10 2025, 4:52 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