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)
Sat, Oct 3, 11:23 AM
Unknown Object (File)
Fri, Oct 2, 12:39 PM
Unknown Object (File)
Mon, Sep 21, 2:50 PM
Unknown Object (File)
Sun, Sep 20, 2:58 AM
Unknown Object (File)
Sep 11 2026, 4:27 AM
Unknown Object (File)
Sep 11 2026, 2:06 AM
Unknown Object (File)
Sep 8 2026, 2:06 PM
Unknown Object (File)
Sep 8 2026, 4:16 AM

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