Lines Matching defs:gsbase
166 unsigned long gsbase;
194 gsbase = rdgsbase();
198 rdmsrl(MSR_KERNEL_GS_BASE, gsbase);
202 return gsbase;
213 static noinstr void __wrgsbase_inactive(unsigned long gsbase)
220 wrgsbase(gsbase);
224 wrmsrl(MSR_KERNEL_GS_BASE, gsbase);
270 prev_p->thread.gsbase = 0;
285 task->thread.gsbase = __rdgsbase_inactive();
293 * While a process is running,current->thread.fsbase and current->thread.gsbase
403 __wrgsbase_inactive(next->gsbase);
407 load_seg_legacy(prev->gsindex, prev->gsbase,
408 next->gsindex, next->gsbase, GS);
457 unsigned long gsbase;
463 gsbase = __rdgsbase_inactive();
466 rdmsrl(MSR_KERNEL_GS_BASE, gsbase);
469 return gsbase;
472 void x86_gsbase_write_cpu_inactive(unsigned long gsbase)
478 __wrgsbase_inactive(gsbase);
481 wrmsrl(MSR_KERNEL_GS_BASE, gsbase);
502 unsigned long gsbase;
505 gsbase = x86_gsbase_read_cpu_inactive();
508 gsbase = task->thread.gsbase;
510 gsbase = x86_fsgsbase_read_task(task, task->thread.gsindex);
512 return gsbase;
522 void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase)
526 task->thread.gsbase = gsbase;
865 * that we also fill in thread.gsbase.
867 task->thread.gsbase = arg2;