Searched refs:LDT (Results 1 - 37 of 37) sorted by relevance

/linux-4.4.14/arch/alpha/lib/
H A Dfpreg.c57 #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); macro
59 #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); macro
66 case 0: LDT( 0, val); break; alpha_write_fp_reg()
67 case 1: LDT( 1, val); break; alpha_write_fp_reg()
68 case 2: LDT( 2, val); break; alpha_write_fp_reg()
69 case 3: LDT( 3, val); break; alpha_write_fp_reg()
70 case 4: LDT( 4, val); break; alpha_write_fp_reg()
71 case 5: LDT( 5, val); break; alpha_write_fp_reg()
72 case 6: LDT( 6, val); break; alpha_write_fp_reg()
73 case 7: LDT( 7, val); break; alpha_write_fp_reg()
74 case 8: LDT( 8, val); break; alpha_write_fp_reg()
75 case 9: LDT( 9, val); break; alpha_write_fp_reg()
76 case 10: LDT(10, val); break; alpha_write_fp_reg()
77 case 11: LDT(11, val); break; alpha_write_fp_reg()
78 case 12: LDT(12, val); break; alpha_write_fp_reg()
79 case 13: LDT(13, val); break; alpha_write_fp_reg()
80 case 14: LDT(14, val); break; alpha_write_fp_reg()
81 case 15: LDT(15, val); break; alpha_write_fp_reg()
82 case 16: LDT(16, val); break; alpha_write_fp_reg()
83 case 17: LDT(17, val); break; alpha_write_fp_reg()
84 case 18: LDT(18, val); break; alpha_write_fp_reg()
85 case 19: LDT(19, val); break; alpha_write_fp_reg()
86 case 20: LDT(20, val); break; alpha_write_fp_reg()
87 case 21: LDT(21, val); break; alpha_write_fp_reg()
88 case 22: LDT(22, val); break; alpha_write_fp_reg()
89 case 23: LDT(23, val); break; alpha_write_fp_reg()
90 case 24: LDT(24, val); break; alpha_write_fp_reg()
91 case 25: LDT(25, val); break; alpha_write_fp_reg()
92 case 26: LDT(26, val); break; alpha_write_fp_reg()
93 case 27: LDT(27, val); break; alpha_write_fp_reg()
94 case 28: LDT(28, val); break; alpha_write_fp_reg()
95 case 29: LDT(29, val); break; alpha_write_fp_reg()
96 case 30: LDT(30, val); break; alpha_write_fp_reg()
97 case 31: LDT(31, val); break; alpha_write_fp_reg()
/linux-4.4.14/arch/x86/include/uapi/asm/
H A Dldt.h9 /* Maximum number of LDT entries supported. */
11 /* The size of each LDT entry. */
/linux-4.4.14/arch/mips/include/asm/sibyte/
H A Dsb1250_ldt.h4 * LDT constants File: sb1250_ldt.h
7 * the LDT interface on the SB1250.
42 * LDT Interface Type 1 (bridge) configuration header
80 * LDT Device ID register
95 * LDT Command Register (Table 8-13)
110 * LDT class and revision registers
155 * LDT Status Register (Table 8-14). Note that these constants
202 * LDT Command Register (Table 8-17). Note that these constants
216 * LDT link control register (Table 8-18), and (Table 8-19)
261 * LDT Link frequency register (Table 8-20) offset 0x48
278 * LDT SRI Command Register (Table 8-21). Note that these constants
310 * LDT Error control and status register (Table 8-22) (Table 8-23)
378 * LDT SRI Transmit Buffer Count register (Table 8-26)
H A Dbcm1480_int.h268 * Interrupt LDT Set Register (Table 19)
H A Dsb1250_int.h207 * LDT Interrupt Set Register (table 4-5)
/linux-4.4.14/arch/x86/include/asm/
H A Dmmu_context.h45 * call gates. On native, we could merge the ldt_struct and LDT load_mm_cr4()
53 * Used for LDT copy/destruction.
76 * CPUs with the mm active. The LDT will not be freed until load_mm_ldt()
84 * the local LDT after an IPI loaded a newer value than the one load_mm_ldt()
159 * Load the LDT, if the LDT is different. switch_mm()
162 * the LDT register. This can happen if leave_mm(prev) switch_mm()
168 * prev->context.ldt, because mms never share an LDT. switch_mm()
H A Dsegment.h7 * Constructor for a conventional segment GDT (or LDT) entry.
35 /* Bit 2 is Table Indicator (TI): selects between LDT or GDT */
37 /* LDT segment has TI set ... */
72 * 17 - LDT
H A Ddesc_defs.h70 /* LDT or TSS descriptor in the GDT. 16 bytes. */
H A Dptrace.h130 * selector. We do not allow long mode selectors in the LDT. user_64bit_mode()
/linux-4.4.14/tools/testing/selftests/x86/
H A Dldt_gdt.c2 * ldt_gdt.c - Test cases for LDT and GDT access
67 (ldt ? "LDT" : "GDT"), index); check_invalid_segment()
71 (ldt ? "LDT" : "GDT"), index); check_invalid_segment()
97 (ldt ? "LDT" : "GDT"), index); check_valid_segment()
104 (ldt ? "LDT" : "GDT"), index, ar, expected_ar); check_valid_segment()
108 (ldt ? "LDT" : "GDT"), index, limit, expected_limit); check_valid_segment()
112 (ldt ? "LDT" : "GDT"), index, ar, limit); check_valid_segment()
320 printf("[SKIP]\tSkipping fork and size tests because we have no LDT\n"); do_simple_tests()
363 * 2: thread should clear LDT entry 0
383 /* clear LDT entry 0 */ threadproc()
444 printf("[RUN]\tCross-CPU LDT invalidation\n"); do_multicpu_tests()
517 * For better or for worse, though, the LDT is inherited across exec. finish_exec_test()
H A Dsigreturn.c59 * Illumos "LX branded zones"). Solaris-based kernels reserve LDT
60 * entries 0-5 for their own internal purposes, so start our LDT
88 * - ldt_nonexistent_sel: An LDT entry that doesn't exist (all-zero
90 * - code16_sel: A 16-bit LDT code segment pointing to int3.
91 * - data16_sel: A 16-bit LDT data segment pointing to stack16.
92 * - npcode32_sel: A 32-bit not-present LDT code segment pointing to int3.
93 * - npdata32_sel: A 32-bit not-present LDT data segment pointing to stack16.
99 * RPL and LDT bits filled in, whereas xyz_idx is just an index into the
552 table = "LDT"; test_bad_iret()
609 * Test easy espfix cases: return to a 16-bit LDT SS in each possible main()
/linux-4.4.14/arch/x86/kernel/
H A Dldt.c36 /* The caller must call finalize_ldt_struct on the result. LDT starts zeroed. */ alloc_ldt_struct()
53 * Xen is very picky: it requires a page-aligned LDT that has no alloc_ldt_struct()
54 * trailing nonzero bytes in any page that contains LDT descriptors. alloc_ldt_struct()
72 /* After calling this, the LDT is immutable. */ finalize_ldt_struct()
85 /* Activate the LDT for all CPUs using current_mm. */ install_ldt()
145 * 64bit: Don't touch the LDT register - we're already in the next thread.
H A Dprocess_64.c127 pr_warn("WARNING: dead process %s still has LDT? <%p/%d>\n", release_thread()
314 * nonzero) loads the full descriptor from the GDT or LDT. The __switch_to()
315 * LDT for next is loaded in switch_mm, and the GDT is loaded __switch_to()
338 * only differ from the values in the GDT or LDT if the selector __switch_to()
342 * the register to 0 or the value from the GDT / LDT. If the __switch_to()
H A Despfix_64.c24 * on the LDT, we copy the IRET frame to the ministack and use the
H A Dtls.c58 * only works for LDT segments. tls_desc_okay()
H A Dprocess_32.c292 * the GDT and LDT are properly updated, and must be __switch_to()
H A Dhead_32.S469 xorl %eax,%eax # Clear LDT
/linux-4.4.14/arch/mips/sibyte/bcm1480/
H A Dirq.c169 for (k=0; k<2; k++) { /* Loop through high and low LDT interrupts */ ack_bcm1480_irq()
190 * Pass 2, the LDT world may be edge-triggered, but ack_bcm1480_irq()
235 * PCI and LDT to one cpu and everything else to the other
/linux-4.4.14/arch/mips/pci/
H A Dpci-sb1250.c101 * In PCI Device Mode, hide everything on bus 0 except the LDT host
263 * Also check the LDT bridge's enable, just in case we didn't sb1250_pcibios_init()
H A Dpci-bcm1480ht.c85 * In PCI Device Mode, hide everything on bus 0 except the LDT host
H A Dpci-bcm1480.c94 * In PCI Device Mode, hide everything on bus 0 except the LDT host
/linux-4.4.14/arch/mips/sibyte/sb1250/
H A Dirq.c175 * Pass 2, the LDT world may be edge-triggered, but ack_sb1250_irq()
218 * PCI and LDT to one cpu and everything else to the other
/linux-4.4.14/arch/x86/include/asm/xen/
H A Dinterface.h118 * NB The LDT is set using the MMUEXT_SET_LDT op of HYPERVISOR_mmuext_op
228 unsigned long ldt_base, ldt_ents; /* LDT (linear address, # ents) */
/linux-4.4.14/arch/x86/pci/
H A Damd_bus.c57 * to the LDT Bus Number Registers found in the northbridge.
/linux-4.4.14/arch/x86/um/
H A Dldt.c329 * Our local LDT is used to supply the data for init_new_ldt()
/linux-4.4.14/include/xen/interface/
H A Dvcpu.h64 * practise to move a VCPU onto an 'idle' or default page table, LDT and
H A Dxen.h321 * linear_addr: Linear address of LDT base (NB. must be page-aligned).
322 * nr_ents: Number of entries in LDT.
/linux-4.4.14/arch/m32r/kernel/
H A Dsetup.c405 /* Set up and load the per-CPU TSS and LDT */ cpu_init()
/linux-4.4.14/arch/x86/math-emu/
H A Dfpu_entry.c142 if ((FPU_CS & 4) != 4) { /* Must be in the LDT */ math_emulate()
143 /* Can only handle segmented addressing via the LDT math_emulate()
/linux-4.4.14/arch/x86/xen/
H A Denlighten.c549 * We need to mark the all aliases of the LDT pages RO. We xen_alloc_ldt()
555 * to load the LDT. The hypervisor only checks this when the xen_alloc_ldt()
556 * LDT is faulted in due to subsequent descriptor access. xen_alloc_ldt()
900 /* Write a GDT descriptor entry. Ignore LDT descriptors, since
/linux-4.4.14/arch/x86/mm/
H A Dfault.c111 * instruction was issued. Could check the LDT for lm, check_prefetch_opcode()
557 * segment in LDT is compatibility mode.
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event.c2341 * IA32 - Where we need to look at GDT/LDT segment descriptor tables
2351 * For IA32 we look at the GDT/LDT segment base to convert the code_segment_base()
H A Dcommon.c1453 * Set up and load the per-CPU TSS and LDT cpu_init()
/linux-4.4.14/arch/x86/entry/
H A Dentry_32.S372 je ldt_ss # returning to user-space with LDT SS
H A Dentry_64.S605 * Are we returning to a stack segment from the LDT? Note: in
/linux-4.4.14/drivers/lguest/
H A Dpage_tables.c787 * but defer mapping of the guest register page and IDT/LDT etc page until
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dstv0900_reg.h2427 #define LDT REGx(R0900_P1_LDT) macro

Completed in 1410 milliseconds