Sergey Bugaev, le mar. 25 avril 2023 13:25:02 +0300, a ecrit:
> @@ -733,6 +734,10 @@ boolean_t thread_invoke(
> 
>                     counter(c_thread_invoke_hits++);
>                     (void) spl0();
> +#ifdef __x86_64__
> +                   wrmsr(MSR_REG_FSBASE, new_thread->pcb->iss.fsbase);
> +                   wrmsr(MSR_REG_GSBASE, new_thread->pcb->iss.gsbase);
> +#endif

I guess it could belong to switch_ktss?

Samuel

Reply via email to