HomeFreeBSD

Simplify hot-patching cpu_switch() for lack of UserLocal register.

Description

Simplify hot-patching cpu_switch() for lack of UserLocal register.

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.

Reviewed by: brooks, Alfredo Mazzinghi <alfredo.mazzinghi_cl.cam.ac.uk>
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24931

Details

Provenance
jhbAuthored on May 20 2020, 9:15 PM
Parents
rG2583c3374d3f: loader: fix userboot's ability to detect a guest's interpreter
Branches
Unknown
Tags
Unknown

Event Timeline