Lines Matching defs:gate
618 gate_desc_dump(gate_desc_t *gate, const char *label, int header)
624 switch (gate->sgd_type) {
635 (void) mdb_snprintf(type, sizeof (type), "%3x", gate->sgd_type);
640 lastval = gate->sgd_ist;
643 lastval = gate->sgd_stkcpy;
654 if (gate->sgd_type == SDT_SYSTASKGT)
657 mdb_printf("%-30a ", GATESEG_GETOFFSET(gate));
659 mdb_printf("%4x %d %c %3s %2x\n", gate->sgd_selector,
660 gate->sgd_dpl, (gate->sgd_p ? '+' : ' '), type, lastval);
667 gate_desc_t gate;
672 if (mdb_vread(&gate, sizeof (gate_desc_t), addr) !=
674 mdb_warn("failed to read gate descriptor at %p\n", addr);
678 gate_desc_dump(&gate, "", DCMD_HDRSPEC(flags));
708 gate_desc_t gate;
711 if (mdb_vread(&gate, sizeof (gate_desc_t), addr) !=
713 mdb_warn("failed to read gate descriptor at %p\n",
719 gate_desc_dump(&gate, label, i == 0);
934 { "gate_desc", ":", "dump a gate descriptor", gate_desc },