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)
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
Unknown Object (File)
Wed, Jul 22, 10:51 AM
Unknown Object (File)
Sat, Jul 18, 2:55 PM
Unknown Object (File)
Sat, Jul 11, 7:37 PM
Unknown Object (File)
Wed, Jul 8, 1:34 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