Home
last modified time | relevance | path

Searched refs:ldt (Results 1 – 25 of 27) sorted by relevance

12

/arch/x86/um/
Dldt.c140 uml_ldt_t *ldt = &current->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 = &current->mm->context.arch.ldt; in write_ldt() local
233 mutex_lock(&ldt->lock); in write_ldt()
[all …]
DMakefile11 obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
/arch/x86/kernel/
Dldt.c50 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 …]
Ddoublefault_32.c54 .ldt = 0,
Dstep.c36 desc = child->mm->context.ldt + seg; in convert_ip_to_linear()
DMakefile22 obj-y += time.o ioport.o ldt.o dumpstack.o nmi.o
Dprocess_64.c122 dead_task->mm->context.ldt, in release_thread()
/arch/alpha/kernel/
Dentry.S528 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/
Ddesc.h94 #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()
Dmmu_context.h54 if (unlikely(prev->context.ldt != next->context.ldt)) in switch_mm()
Dmmu.h12 void *ldt; member
Dsuspend_32.h20 u16 ldt; member
Dsuspend_64.h34 u16 ldt; member
DKbuild10 header-y += ldt.h
Dparavirt_types.h134 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);
Dparavirt.h276 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()
Dkvm.h126 struct kvm_segment tr, ldt; member
Dkvm_host.h854 u16 ldt; in kvm_read_ldt() local
855 asm("sldt %0" : "=g"(ldt)); in kvm_read_ldt()
856 return ldt; in kvm_read_ldt()
Dprocessor.h228 unsigned short ldt, __ldth; member
/arch/um/kernel/
Dptrace.c120 struct ptrace_ldt ldt; in arch_ptrace() local
122 if (copy_from_user(&ldt, p, sizeof(ldt))) { in arch_ptrace()
/arch/x86/um/asm/
Dmm_context.h69 uml_ldt_t ldt; member
/arch/x86/kvm/
Dtss.h56 u16 ldt; member
Dsvm.c135 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/
Dfpu_system.h21 #define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
/arch/x86/xen/
Denlighten.c438 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()

12