/linux-4.4.14/arch/alpha/lib/ |
H A D | fpreg.c | 57 #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 D | ldt.h | 9 /* Maximum number of LDT entries supported. */ 11 /* The size of each LDT entry. */
|
/linux-4.4.14/arch/mips/include/asm/sibyte/ |
H A D | sb1250_ldt.h | 4 * 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 D | bcm1480_int.h | 268 * Interrupt LDT Set Register (Table 19)
|
H A D | sb1250_int.h | 207 * LDT Interrupt Set Register (table 4-5)
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | mmu_context.h | 45 * 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 D | segment.h | 7 * 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 D | desc_defs.h | 70 /* LDT or TSS descriptor in the GDT. 16 bytes. */
|
H A D | ptrace.h | 130 * selector. We do not allow long mode selectors in the LDT. user_64bit_mode()
|
/linux-4.4.14/tools/testing/selftests/x86/ |
H A D | ldt_gdt.c | 2 * 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 D | sigreturn.c | 59 * 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 D | ldt.c | 36 /* 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 D | process_64.c | 127 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 D | espfix_64.c | 24 * on the LDT, we copy the IRET frame to the ministack and use the
|
H A D | tls.c | 58 * only works for LDT segments. tls_desc_okay()
|
H A D | process_32.c | 292 * the GDT and LDT are properly updated, and must be __switch_to()
|
H A D | head_32.S | 469 xorl %eax,%eax # Clear LDT
|
/linux-4.4.14/arch/mips/sibyte/bcm1480/ |
H A D | irq.c | 169 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 D | pci-sb1250.c | 101 * 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 D | pci-bcm1480ht.c | 85 * In PCI Device Mode, hide everything on bus 0 except the LDT host
|
H A D | pci-bcm1480.c | 94 * In PCI Device Mode, hide everything on bus 0 except the LDT host
|
/linux-4.4.14/arch/mips/sibyte/sb1250/ |
H A D | irq.c | 175 * 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 D | interface.h | 118 * 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 D | amd_bus.c | 57 * to the LDT Bus Number Registers found in the northbridge.
|
/linux-4.4.14/arch/x86/um/ |
H A D | ldt.c | 329 * Our local LDT is used to supply the data for init_new_ldt()
|
/linux-4.4.14/include/xen/interface/ |
H A D | vcpu.h | 64 * practise to move a VCPU onto an 'idle' or default page table, LDT and
|
H A D | xen.h | 321 * 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 D | setup.c | 405 /* Set up and load the per-CPU TSS and LDT */ cpu_init()
|
/linux-4.4.14/arch/x86/math-emu/ |
H A D | fpu_entry.c | 142 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 D | enlighten.c | 549 * 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 D | fault.c | 111 * 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 D | perf_event.c | 2341 * 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 D | common.c | 1453 * Set up and load the per-CPU TSS and LDT cpu_init()
|
/linux-4.4.14/arch/x86/entry/ |
H A D | entry_32.S | 372 je ldt_ss # returning to user-space with LDT SS
|
H A D | entry_64.S | 605 * Are we returning to a stack segment from the LDT? Note: in
|
/linux-4.4.14/drivers/lguest/ |
H A D | page_tables.c | 787 * but defer mapping of the guest register page and IDT/LDT etc page until
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | stv0900_reg.h | 2427 #define LDT REGx(R0900_P1_LDT) macro
|