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/uts/intel/os/arch_kdi.c
          +++ new/usr/src/uts/intel/os/arch_kdi.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 2009 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   28  /*
  27   29   * Kernel/Debugger Interface (KDI) routines.  Called during debugger under
  28   30   * various system states (boot, while running, while the debugger has control).
  29   31   * Functions intended for use while the debugger has control may not grab any
  30   32   * locks or perform any functions that assume the availability of other system
  31   33   * services.
  32   34   */
  33   35  
↓ open down ↓ 113 lines elided ↑ open up ↑
 147  149   */
 148  150  void
 149  151  mach_kdi_init(kdi_t *kdi)
 150  152  {
 151  153          kdi->kdi_plat_call = kdi_plat_call;
 152  154          kdi->kdi_kmdb_enter = kmdb_enter;
 153  155          kdi->mkdi_activate = kdi_activate;
 154  156          kdi->mkdi_deactivate = kdi_deactivate;
 155  157          kdi->mkdi_idt_switch = kdi_idt_switch;
 156  158          kdi->mkdi_update_drreg = kdi_update_drreg;
 157      -        kdi->mkdi_set_debug_msrs = kdi_set_debug_msrs;
 158  159          kdi->mkdi_get_userlimit = kdi_get_userlimit;
 159  160          kdi->mkdi_get_cpuinfo = kdi_get_cpuinfo;
 160  161          kdi->mkdi_stop_slaves = kdi_stop_slaves;
 161  162          kdi->mkdi_start_slaves = kdi_start_slaves;
 162  163          kdi->mkdi_slave_wait = kdi_slave_wait;
 163  164          kdi->mkdi_memrange_add = kdi_memrange_add;
 164  165          kdi->mkdi_reboot = kdi_reboot;
 165  166  }
 166  167  
 167  168  void
 168  169  plat_kdi_init(kdi_t *kdi)
 169  170  {
 170  171          kdi->pkdi_system_claim = kdi_system_claim;
 171  172          kdi->pkdi_system_release = kdi_system_release;
 172  173  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX