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, May 2, 6:41 AM
Unknown Object (File)
Sat, Apr 26, 12:33 PM
Unknown Object (File)
Mon, Apr 21, 10:04 AM
Unknown Object (File)
Mar 17 2025, 11:59 PM
Unknown Object (File)
Mar 14 2025, 5:14 AM
Unknown Object (File)
Mar 6 2025, 7:16 PM
Unknown Object (File)
Feb 26 2025, 6:51 AM
Unknown Object (File)
Feb 11 2025, 9:28 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