bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/5] add setting gs/fsbase


From: Samuel Thibault
Subject: Re: [PATCH 5/5] add setting gs/fsbase
Date: Tue, 25 Apr 2023 12:59:20 +0200
User-agent: NeoMutt/20170609 (1.8.3)

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

[Prev in Thread] Current Thread [Next in Thread]