Lines Matching refs:ldt
38 #include <asm/ldt.h>
81 // Read current LDT entries.
83 std::vector<uint64_t> ldt(LDT_ENTRIES);
84 size_t ldt_size(sizeof(uint64_t) * ldt.size());
85 memset(&ldt[0], 0, ldt_size);
87 syscall(__NR_modify_ldt, 0, &ldt[0], ldt_size);
90 for (entry_number = 0; entry_number < LDT_ENTRIES && ldt[entry_number] != 0; ++entry_number) {
93 LOG(FATAL) << "Failed to find a free LDT slot";
96 // Update LDT entry.
112 // Change %fs to be new LDT entry.
113 uint16_t table_indicator = 1 << 2; // LDT