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
F164578607: D24931.id72034.diff
Sun, Aug 2, 4:40 AM
Unknown Object (File)
Sun, Aug 2, 12:43 AM
Unknown Object (File)
Sat, Aug 1, 4:25 PM
Unknown Object (File)
Sat, Aug 1, 7:06 AM
Unknown Object (File)
Mon, Jul 27, 9:00 PM
Unknown Object (File)
Mon, Jul 27, 9:00 PM
Unknown Object (File)
Sat, Jul 25, 2:01 PM
Unknown Object (File)
Sat, Jul 25, 1:25 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