Home
last modified time | relevance | path

Searched refs:fsbase (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/arch/x86/include/asm/ !
Dfsgsbase.h19 extern void x86_fsbase_write_task(struct task_struct *task, unsigned long fsbase);
26 unsigned long fsbase; in rdfsbase() local
28 asm volatile("rdfsbase %0" : "=r" (fsbase) :: "memory"); in rdfsbase()
30 return fsbase; in rdfsbase()
42 static __always_inline void wrfsbase(unsigned long fsbase) in wrfsbase() argument
44 asm volatile("wrfsbase %0" :: "r" (fsbase) : "memory"); in wrfsbase()
58 unsigned long fsbase; in x86_fsbase_read_cpu() local
61 fsbase = rdfsbase(); in x86_fsbase_read_cpu()
63 rdmsrl(MSR_FS_BASE, fsbase); in x86_fsbase_read_cpu()
65 return fsbase; in x86_fsbase_read_cpu()
[all …]
Delf.h163 t->fsbase = t->gsbase = 0; in elf_common_init()
Dprocessor.h431 unsigned long fsbase; member
/linux-6.6.21/arch/x86/kernel/ !
Dprocess_64.c244 prev_p->thread.fsbase = 0; in save_base_legacy()
260 task->thread.fsbase = rdfsbase(); in save_fsgs()
378 wrfsbase(next->fsbase); in x86_fsgsbase_load()
381 load_seg_legacy(prev->fsindex, prev->fsbase, in x86_fsgsbase_load()
382 next->fsindex, next->fsbase, FS); in x86_fsgsbase_load()
463 unsigned long fsbase; in x86_fsbase_read_task() local
466 fsbase = x86_fsbase_read_cpu(); in x86_fsbase_read_task()
469 fsbase = task->thread.fsbase; in x86_fsbase_read_task()
471 fsbase = x86_fsgsbase_read_task(task, task->thread.fsindex); in x86_fsbase_read_task()
473 return fsbase; in x86_fsbase_read_task()
[all …]
Dtls.c176 p->thread.fsbase = info.base_addr; in do_set_thread_area()
Dprocess.c184 p->thread.fsbase = current->thread.fsbase; in copy_thread()
Dptrace.c896 child->thread.fsbase = in putreg32()
/linux-6.6.21/tools/testing/selftests/x86/ !
Dfsgsbase.c100 unsigned long fsbase; in rdfsbase() local
102 asm volatile("rdfsbase %0" : "=r" (fsbase) :: "memory"); in rdfsbase()
104 return fsbase; in rdfsbase()
112 static inline void wrfsbase(unsigned long fsbase) in wrfsbase() argument
114 asm volatile("wrfsbase %0" :: "r" (fsbase) : "memory"); in wrfsbase()
/linux-6.6.21/Documentation/arch/x86/x86_64/ !
Dfsgs.rst58 arch_prctl(ARCH_GET_FS, &fsbase);
63 arch_prctl(ARCH_SET_FS, fsbase);
/linux-6.6.21/arch/x86/kvm/vmx/ !
Dvmx.c1342 fs_base = current->thread.fsbase; in vmx_prepare_switch_to_guest()