Print this page
9210 remove KMDB branch debugging support
9211 ::crregs could do with cr2/cr3 support
9209 ::ttrace should be able to filter by thread
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/intel/kmdb/kmdb_dpi_isadep.c
          +++ new/usr/src/cmd/mdb/intel/kmdb/kmdb_dpi_isadep.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2018 Joyent, Inc.
  24   26   */
  25   27  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   28  /*
  29   29   * Intel-specific portions of the DPI
  30   30   */
  31   31  
  32   32  #include <sys/types.h>
  33   33  #include <sys/trap.h>
  34   34  
  35   35  #include <kmdb/kmdb_dpi_impl.h>
  36   36  #include <kmdb/kmdb_fault.h>
  37   37  #include <kmdb/kmdb_kdi.h>
↓ open down ↓ 96 lines elided ↑ open up ↑
 134  134  }
 135  135  
 136  136  void
 137  137  kmdb_dpi_reboot(void)
 138  138  {
 139  139          /*
 140  140           * We're going to skip all of the niceties we employ in resume_common,
 141  141           * as we don't plan to ever return.
 142  142           */
 143  143          longjmp(kmdb_dpi_entry_pcb, KMDB_DPI_CMD_REBOOT);
 144      -}
 145      -
 146      -void
 147      -kmdb_dpi_msr_add(const kdi_msr_t *msrs)
 148      -{
 149      -        mdb.m_dpi->dpo_msr_add(msrs);
 150      -}
 151      -
 152      -uint64_t
 153      -kmdb_dpi_msr_get(uint_t msr)
 154      -{
 155      -        return (mdb.m_dpi->dpo_msr_get(DPI_MASTER_CPUID, msr));
 156      -}
 157      -
 158      -uint64_t
 159      -kmdb_dpi_msr_get_by_cpu(int cpuid, uint_t msr)
 160      -{
 161      -        return (mdb.m_dpi->dpo_msr_get(cpuid, msr));
 162  144  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX