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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31202
Build 28857: arc lint + arc unit