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
F150243755: D24931.diff
Mon, Mar 30, 2:00 PM
Unknown Object (File)
Wed, Mar 25, 9:16 PM
Unknown Object (File)
Wed, Mar 25, 12:58 PM
Unknown Object (File)
Sat, Mar 21, 1:03 PM
Unknown Object (File)
Tue, Mar 17, 10:34 PM
Unknown Object (File)
Fri, Mar 6, 8:10 PM
Unknown Object (File)
Dec 28 2025, 8:28 PM
Unknown Object (File)
Dec 26 2025, 7:24 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