Lines Matching refs:gsbase
165 unsigned long gsbase;
171 gsbase = rdgsbase();
175 rdmsrl(MSR_KERNEL_GS_BASE, gsbase);
179 return gsbase;
190 static noinstr void __wrgsbase_inactive(unsigned long gsbase)
196 wrgsbase(gsbase);
200 wrmsrl(MSR_KERNEL_GS_BASE, gsbase);
246 prev_p->thread.gsbase = 0;
261 task->thread.gsbase = __rdgsbase_inactive();
269 * While a process is running,current->thread.fsbase and current->thread.gsbase
379 __wrgsbase_inactive(next->gsbase);
383 load_seg_legacy(prev->gsindex, prev->gsbase,
384 next->gsindex, next->gsbase, GS);
433 unsigned long gsbase;
439 gsbase = __rdgsbase_inactive();
442 rdmsrl(MSR_KERNEL_GS_BASE, gsbase);
445 return gsbase;
448 void x86_gsbase_write_cpu_inactive(unsigned long gsbase)
454 __wrgsbase_inactive(gsbase);
457 wrmsrl(MSR_KERNEL_GS_BASE, gsbase);
478 unsigned long gsbase;
481 gsbase = x86_gsbase_read_cpu_inactive();
484 gsbase = task->thread.gsbase;
486 gsbase = x86_fsgsbase_read_task(task, task->thread.gsindex);
488 return gsbase;
498 void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase)
502 task->thread.gsbase = gsbase;
817 * that we also fill in thread.gsbase.
819 task->thread.gsbase = arg2;