Searched refs:ldtsz (Results 1 – 1 of 1) sorted by relevance
/titanic_44/usr/src/uts/intel/ia32/os/ |
H A D | sysi86.c | 709 size_t ldtsz; in ldt_alloc() local 719 ldtsz = P2ROUNDUP((seli + 1) * sizeof (user_desc_t), PAGESIZE); in ldt_alloc() 720 nsels = ldtsz / sizeof (user_desc_t); in ldt_alloc() 723 ldt = kmem_zalloc(ldtsz, KM_SLEEP); in ldt_alloc() 727 if (xen_ldt_setprot(ldt, ldtsz, PROT_READ)) in ldt_alloc() 733 set_syssegd(&pp->p_ldt_desc, ldt, ldtsz - 1, SDT_SYSLDT, SEL_KPL); in ldt_alloc() 746 size_t ldtsz; in ldt_free() local 752 ldtsz = (pp->p_ldtlimit + 1) * sizeof (user_desc_t); in ldt_free() 754 ASSERT(IS_P2ALIGNED(ldtsz, PAGESIZE)); in ldt_free() 772 if (xen_ldt_setprot(ldt, ldtsz, PROT_READ | PROT_WRITE)) in ldt_free() [all …]
|