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)
Tue, Dec 9, 6:01 AM
Unknown Object (File)
Sat, Nov 29, 2:17 PM
Unknown Object (File)
Thu, Nov 27, 8:37 AM
Unknown Object (File)
Wed, Nov 26, 3:36 AM
Unknown Object (File)
Nov 22 2025, 3:23 PM
Unknown Object (File)
Nov 20 2025, 8:31 PM
Unknown Object (File)
Nov 20 2025, 8:20 PM
Unknown Object (File)
Nov 20 2025, 8:18 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