/arch/x86/um/ |
D | ldt.c | 140 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt; in read_ldt() local 142 if (!ldt->entry_count) in read_ldt() 151 mutex_lock(&ldt->lock); in read_ldt() 152 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) { in read_ldt() 156 if (copy_to_user(ptr, ldt->u.entries, size)) in read_ldt() 162 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt() 167 if (copy_to_user(ptr, ldt->u.pages[i], size)) { in read_ldt() 175 mutex_unlock(&ldt->lock); in read_ldt() 208 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt; in write_ldt() local 233 mutex_lock(&ldt->lock); in write_ldt() [all …]
|
D | Makefile | 11 obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
|
/arch/x86/kernel/ |
D | ldt.c | 50 memcpy(newldt, pc->ldt, oldsize * LDT_ENTRY_SIZE); in alloc_ldt() 51 oldldt = pc->ldt; in alloc_ldt() 61 pc->ldt = newldt; in alloc_ldt() 97 write_ldt_entry(new->ldt, i, old->ldt + i * LDT_ENTRY_SIZE); in copy_ldt() 134 paravirt_free_ldt(mm->context.ldt, mm->context.size); in destroy_context() 136 vfree(mm->context.ldt); in destroy_context() 138 put_page(virt_to_page(mm->context.ldt)); in destroy_context() 160 if (copy_to_user(ptr, mm->context.ldt, size)) in read_ldt() 195 struct desc_struct ldt; in write_ldt() local 227 memset(&ldt, 0, sizeof(ldt)); in write_ldt() [all …]
|
D | doublefault_32.c | 54 .ldt = 0,
|
D | step.c | 36 desc = child->mm->context.ldt + seg; in convert_ip_to_linear()
|
D | Makefile | 22 obj-y += time.o ioport.o ldt.o dumpstack.o nmi.o
|
D | process_64.c | 122 dead_task->mm->context.ldt, in release_thread()
|
/arch/alpha/kernel/ |
D | entry.S | 528 ldt $f0, 64($sp) # dont let "do_switch_stack" change fp state. 543 ldt $f30, 312($sp) # get saved fpcr 544 ldt $f0, 64($sp) 545 ldt $f1, 72($sp) 546 ldt $f2, 80($sp) 547 ldt $f3, 88($sp) 549 ldt $f4, 96($sp) 550 ldt $f5, 104($sp) 551 ldt $f6, 112($sp) 552 ldt $f7, 120($sp) [all …]
|
/arch/x86/include/asm/ |
D | desc.h | 94 #define load_ldt(ldt) asm volatile("lldt %0"::"m" (ldt)) argument 107 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 111 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 116 #define store_ldt(ldt) asm("sldt %0" : "=m"(ldt)) argument 123 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry() argument 125 memcpy(&ldt[entry], desc, 8); in native_write_ldt_entry() 200 ldt_desc ldt; in native_set_ldt() local 202 set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT, in native_set_ldt() 205 &ldt, DESC_LDT); in native_set_ldt() 279 set_ldt(pc->ldt, pc->size); in load_LDT_nolock()
|
D | mmu_context.h | 54 if (unlikely(prev->context.ldt != next->context.ldt)) in switch_mm()
|
D | mmu.h | 12 void *ldt; member
|
D | suspend_32.h | 20 u16 ldt; member
|
D | suspend_64.h | 34 u16 ldt; member
|
D | Kbuild | 10 header-y += ldt.h
|
D | paravirt_types.h | 134 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 140 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 141 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
D | paravirt.h | 276 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 278 PVOP_VCALL2(pv_cpu_ops.alloc_ldt, ldt, entries); in paravirt_alloc_ldt() 281 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 283 PVOP_VCALL2(pv_cpu_ops.free_ldt, ldt, entries); in paravirt_free_ldt()
|
D | kvm.h | 126 struct kvm_segment tr, ldt; member
|
D | kvm_host.h | 854 u16 ldt; in kvm_read_ldt() local 855 asm("sldt %0" : "=g"(ldt)); in kvm_read_ldt() 856 return ldt; in kvm_read_ldt()
|
D | processor.h | 228 unsigned short ldt, __ldth; member
|
/arch/um/kernel/ |
D | ptrace.c | 120 struct ptrace_ldt ldt; in arch_ptrace() local 122 if (copy_from_user(&ldt, p, sizeof(ldt))) { in arch_ptrace()
|
/arch/x86/um/asm/ |
D | mm_context.h | 69 uml_ldt_t ldt; member
|
/arch/x86/kvm/ |
D | tss.h | 56 u16 ldt; member
|
D | svm.c | 135 u16 ldt; member 1308 svm->host.ldt = kvm_read_ldt(); in svm_vcpu_load() 1326 kvm_load_ldt(svm->host.ldt); in svm_vcpu_put()
|
/arch/x86/math-emu/ |
D | fpu_system.h | 21 #define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
|
/arch/x86/xen/ |
D | enlighten.c | 438 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() argument 444 set_aliased_prot(ldt + i, PAGE_KERNEL_RO); in xen_alloc_ldt() 447 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() argument 453 set_aliased_prot(ldt + i, PAGE_KERNEL); in xen_free_ldt()
|