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>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/i86pc/modules/unix/unix_sup.s
          +++ new/usr/src/cmd/mdb/i86pc/modules/unix/unix_sup.s
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3   * Common Development and Distribution License ("CDDL"), version 1.0.
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13      - * Copyright 2015 Joyent, Inc.
       13 + * Copyright 2018 Joyent, Inc.
  14   14   */
  15   15  
  16   16  #if !defined(__lint)
  17   17          .file   "unix_sup.s"
  18   18  #endif /* __lint */
  19   19  
  20   20  /*
  21   21   * Support routines for the unix kmdb module
  22   22   */
  23   23  
↓ open down ↓ 12 lines elided ↑ open up ↑
  36   36  { return (0); }
  37   37  
  38   38  #else   /* __lint */
  39   39  
  40   40  #if defined(__amd64)
  41   41          ENTRY(kmdb_unix_getcr0)
  42   42          movq %cr0, %rax
  43   43          ret
  44   44          SET_SIZE(kmdb_unix_getcr0)
  45   45  
       46 +        ENTRY(kmdb_unix_getcr2)
       47 +        movq %cr2, %rax
       48 +        ret
       49 +        SET_SIZE(kmdb_unix_getcr2)
       50 +
       51 +        ENTRY(kmdb_unix_getcr3)
       52 +        movq %cr3, %rax
       53 +        ret
       54 +        SET_SIZE(kmdb_unix_getcr3)
       55 +
  46   56          ENTRY(kmdb_unix_getcr4)
  47   57          movq %cr4, %rax
  48   58          ret
  49   59          SET_SIZE(kmdb_unix_getcr4)
  50   60  
  51   61  #elif defined (__i386)
  52   62          ENTRY(kmdb_unix_getcr0)
  53   63          movl %cr0, %eax
  54   64          ret
  55   65          SET_SIZE(kmdb_unix_getcr0)
  56   66  
       67 +        ENTRY(kmdb_unix_getcr2)
       68 +        movl %cr2, %eax
       69 +        ret
       70 +        SET_SIZE(kmdb_unix_getcr2)
       71 +
       72 +        ENTRY(kmdb_unix_getcr3)
       73 +        movl %cr3, %eax
       74 +        ret
       75 +        SET_SIZE(kmdb_unix_getcr3)
       76 +
  57   77          ENTRY(kmdb_unix_getcr4)
  58   78          movl %cr4, %eax
  59   79          ret
  60   80          SET_SIZE(kmdb_unix_getcr4)
  61   81  
  62   82  #endif  /* __i386 */
  63   83  
  64   84  #endif /* __lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX