Lines Matching refs:rm
82 struct rm_platter *rm = (struct rm_platter *)rm_platter_va;
92 addr = (ulong_t)((caddr_t)rm->rm_code - (caddr_t)rm) + rm_platter_pa;
107 bcopy((caddr_t)real_mode_start_cpu, (caddr_t)rm->rm_code,
131 rmp_gdt_init(rm_platter_t *rm)
153 rm->rm_temp_gdt[0] = 0;
154 rm->rm_temp_gdt[TEMPGDT_KCODE64] = 0x20980000000000ULL;
156 rm->rm_temp_gdt_lim = (ushort_t)(sizeof (rm->rm_temp_gdt) - 1);
157 rm->rm_temp_gdt_base = rm_platter_pa +
159 rm->rm_temp_idt_lim = 0;
160 rm->rm_temp_idt_base = 0;
166 rm->rm_longmode64_addr = rm_platter_pa +
234 rm_platter_t *rm = (rm_platter_t *)rm_platter_va;
263 (caddr_t)rm->rm_cpu_halt_code, len);
276 (caddr_t)rm->rm_code, len);
277 rm->rm_cpu_halted = 0;
295 bcopy((caddr_t)real_mode_start_cpu, (caddr_t)rm->rm_code,
304 rm->rm_idt_base = cp->cpu_idt;
305 rm->rm_idt_lim = sizeof (*cp->cpu_idt) * NIDT - 1;
306 rm->rm_gdt_base = cp->cpu_gdt;
307 rm->rm_gdt_lim = sizeof (*cp->cpu_gdt) * NGDT - 1;
316 rm->rm_pdbr = MAKECR3(kas.a_hat->hat_htable->ht_pfn);
317 rm->rm_cpu = cp->cpu_id;
324 rm->rm_cr4 = getcr4();
325 rm->rm_cr4 &= ~(CR4_MCE | CR4_PCE);
327 rmp_gdt_init(rm);
553 rm_platter_t *rm = (rm_platter_t *)rm_platter_va;
606 while (*(volatile ushort_t *)&(rm->rm_cpu_halted) != 0xdead) {
609 rm->rm_cpu_halted = 0xffff;