Home
last modified time | relevance | path

Searched refs:entry_number (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/arch/x86/um/
H A Dtls_32.c34 "index = %d\n", ret, info->entry_number); in do_set_thread_area()
50 "index = %d\n", ret, info->entry_number); in do_get_thread_area()
105 curr->tls.entry_number = idx; in load_TLS()
227 idx = info.entry_number; in arch_set_tls()
267 info->entry_number = idx; in get_tls_entry()
282 idx = info.entry_number; in SYSCALL_DEFINE1()
288 info.entry_number = idx; in SYSCALL_DEFINE1()
290 if (put_user(idx, &user_desc->entry_number)) in SYSCALL_DEFINE1()
327 if (get_user(idx, &user_desc->entry_number)) in SYSCALL_DEFINE1()
H A Dldt.c140 if (ldt_info.entry_number >= LDT_ENTRIES) in write_ldt()
155 if (ldt_info.entry_number >= ldt->entry_count && in write_ldt()
156 ldt_info.entry_number >= LDT_DIRECT_ENTRIES) { in write_ldt()
158 i*LDT_ENTRIES_PER_PAGE <= ldt_info.entry_number; in write_ldt()
181 if (ldt->entry_count <= ldt_info.entry_number) in write_ldt()
182 ldt->entry_count = ldt_info.entry_number + 1; in write_ldt()
185 ldt_p = ldt->u.entries + ldt_info.entry_number; in write_ldt()
187 ldt_p = ldt->u.pages[ldt_info.entry_number/LDT_ENTRIES_PER_PAGE] + in write_ldt()
188 ldt_info.entry_number%LDT_ENTRIES_PER_PAGE; in write_ldt()
320 desc.entry_number = *num_p; in init_new_ldt()
/openbmc/linux/arch/x86/um/os-Linux/
H A Dtls.c30 info.entry_number = val[i]; in check_host_supports_tls()
52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
/openbmc/linux/tools/testing/selftests/x86/
H A Dsigreturn.c167 *var = LDT3(desc->entry_number); in add_ldt()
184 .entry_number = LDT_OFFSET + 0, in setup_ldt()
197 .entry_number = LDT_OFFSET + 1, in setup_ldt()
210 .entry_number = LDT_OFFSET + 3, in setup_ldt()
223 .entry_number = LDT_OFFSET + 4, in setup_ldt()
236 .entry_number = -1, in setup_ldt()
254 gdt_data16_desc.entry_number); in setup_ldt()
255 gdt_data16_idx = gdt_data16_desc.entry_number; in setup_ldt()
261 .entry_number = -1, in setup_ldt()
277 gdt_npdata32_desc.entry_number); in setup_ldt()
[all …]
H A Dldt_gdt.c152 desc.entry_number = gdt_entry_num; in install_valid_mode()
209 check_invalid_segment(desc->entry_number, 1); in install_invalid()
247 .entry_number = 0, in do_simple_tests()
265 desc.entry_number = 2; in do_simple_tests()
335 check_valid_segment(desc.entry_number, 1, in do_simple_tests()
358 desc.entry_number = i; in do_simple_tests()
376 desc.entry_number = 8192; in do_simple_tests()
573 .entry_number = 0, in do_multicpu_tests()
642 .entry_number = 0, in do_exec_test()
704 low_user_desc->entry_number = -1; in setup_low_user_desc()
[all …]
H A Dfsgsbase_restore.c63 .entry_number = 0, in init_seg()
85 low_desc->entry_number = -1; in init_seg()
103 printf("\tusing GDT slot %d\n", desc.entry_number); in init_seg()
105 unsigned short sel = (unsigned short)((desc.entry_number << 3) | 0x3); in init_seg()
H A Dfsgsbase.c260 .entry_number = 0, in load_gs()
283 low_desc->entry_number = set_thread_area_entry_number; in load_gs()
298 printf("\tusing GDT slot %d\n", desc.entry_number); in load_gs()
299 set_thread_area_entry_number = desc.entry_number; in load_gs()
301 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs()
/openbmc/linux/arch/x86/kernel/
H A Dtls.c129 idx = info.entry_number; in do_set_thread_area()
139 if (put_user(idx, &u_info->entry_number)) in do_set_thread_area()
201 info->entry_number = idx; in fill_user_desc()
221 if (idx == -1 && get_user(idx, &u_info->entry_number)) in do_get_thread_area()
H A Dldt.c595 if (ldt_info.entry_number >= LDT_ENTRIES) in write_ldt()
624 new_nr_entries = max(ldt_info.entry_number + 1, old_nr_entries); in write_ldt()
634 new_ldt->entries[ldt_info.entry_number] = ldt; in write_ldt()
/openbmc/qemu/linux-user/x86_64/
H A Dtarget_syscall.h47 unsigned int entry_number;
60 unsigned int entry_number; member
/openbmc/qemu/bsd-user/x86_64/
H A Dtarget_syscall.h64 unsigned int entry_number;
77 unsigned int entry_number; member
/openbmc/linux/arch/x86/include/uapi/asm/
H A Dldt.h22 unsigned int entry_number; member
/openbmc/linux/arch/x86/um/shared/sysdep/
H A Dtls.h12 unsigned int entry_number; member
/openbmc/qemu/bsd-user/i386/
H A Dtarget_syscall.h54 unsigned int entry_number; member
/openbmc/qemu/linux-user/i386/
H A Dtarget_syscall.h37 unsigned int entry_number; member
/openbmc/qemu/tests/tcg/i386/
H A Dtest-i386.c1301 ldt.entry_number = 1; in test_segs()
1312 ldt.entry_number = 2; in test_segs()
1398 ldt.entry_number = 1; in test_code16()
1802 ldt.entry_number = 1; in test_exceptions()
/openbmc/qemu/linux-user/
H A Dsyscall.c5978 ldt_info.entry_number = tswap32(target_ldt_info->entry_number); in write_ldt()
5984 if (ldt_info.entry_number >= TARGET_LDT_ENTRIES) in write_ldt()
6050 lp = (uint32_t *)(ldt_table + (ldt_info.entry_number << 3)); in write_ldt()
6093 ldt_info.entry_number = tswap32(target_ldt_info->entry_number); in do_set_thread_area()
6097 if (ldt_info.entry_number == -1) { in do_set_thread_area()
6100 ldt_info.entry_number = i; in do_set_thread_area()
6101 target_ldt_info->entry_number = tswap32(i); in do_set_thread_area()
6108 if (ldt_info.entry_number < TARGET_GDT_ENTRY_TLS_MIN || in do_set_thread_area()
6109 ldt_info.entry_number > TARGET_GDT_ENTRY_TLS_MAX) in do_set_thread_area()
6159 lp = (uint32_t *)(gdt_table + ldt_info.entry_number); in do_set_thread_area()
[all …]