Lines Matching refs:gsbase

164 	unsigned long gsbase;  in __rdgsbase_inactive()  local
170 gsbase = rdgsbase(); in __rdgsbase_inactive()
174 rdmsrl(MSR_KERNEL_GS_BASE, gsbase); in __rdgsbase_inactive()
178 return gsbase; in __rdgsbase_inactive()
189 static noinstr void __wrgsbase_inactive(unsigned long gsbase) in __wrgsbase_inactive() argument
195 wrgsbase(gsbase); in __wrgsbase_inactive()
199 wrmsrl(MSR_KERNEL_GS_BASE, gsbase); in __wrgsbase_inactive()
245 prev_p->thread.gsbase = 0; in save_base_legacy()
260 task->thread.gsbase = __rdgsbase_inactive(); in save_fsgs()
378 __wrgsbase_inactive(next->gsbase); in x86_fsgsbase_load()
382 load_seg_legacy(prev->gsindex, prev->gsbase, in x86_fsgsbase_load()
383 next->gsindex, next->gsbase, GS); in x86_fsgsbase_load()
432 unsigned long gsbase; in x86_gsbase_read_cpu_inactive() local
438 gsbase = __rdgsbase_inactive(); in x86_gsbase_read_cpu_inactive()
441 rdmsrl(MSR_KERNEL_GS_BASE, gsbase); in x86_gsbase_read_cpu_inactive()
444 return gsbase; in x86_gsbase_read_cpu_inactive()
447 void x86_gsbase_write_cpu_inactive(unsigned long gsbase) in x86_gsbase_write_cpu_inactive() argument
453 __wrgsbase_inactive(gsbase); in x86_gsbase_write_cpu_inactive()
456 wrmsrl(MSR_KERNEL_GS_BASE, gsbase); in x86_gsbase_write_cpu_inactive()
477 unsigned long gsbase; in x86_gsbase_read_task() local
480 gsbase = x86_gsbase_read_cpu_inactive(); in x86_gsbase_read_task()
483 gsbase = task->thread.gsbase; in x86_gsbase_read_task()
485 gsbase = x86_fsgsbase_read_task(task, task->thread.gsindex); in x86_gsbase_read_task()
487 return gsbase; in x86_gsbase_read_task()
497 void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase) in x86_gsbase_write_task() argument
501 task->thread.gsbase = gsbase; in x86_gsbase_write_task()
770 task->thread.gsbase = arg2; in do_arch_prctl_64()