Lines Matching refs:arch
48 * for arch/i386/kernel/ldt.c
60 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt;
125 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt;
309 mutex_init(&new_mm->arch.ldt.lock);
326 new_mm->arch.ldt.entry_count = 0;
337 mutex_lock(&from_mm->arch.ldt.lock);
338 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES)
339 memcpy(new_mm->arch.ldt.u.entries, from_mm->arch.ldt.u.entries,
340 sizeof(new_mm->arch.ldt.u.entries));
342 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE;
349 new_mm->arch.ldt.u.pages[i] =
351 memcpy(new_mm->arch.ldt.u.pages[i],
352 from_mm->arch.ldt.u.pages[i], PAGE_SIZE);
355 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count;
356 mutex_unlock(&from_mm->arch.ldt.lock);
367 if (mm->arch.ldt.entry_count > LDT_DIRECT_ENTRIES) {
368 i = mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE;
370 free_page((long) mm->arch.ldt.u.pages[i]);
372 mm->arch.ldt.entry_count = 0;