Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sfmmu/ml/sfmmu_kdi.s
          +++ new/usr/src/uts/sfmmu/ml/sfmmu_kdi.s
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#if !defined(lint)
  28   27  #include <sys/asm_linkage.h>
  29   28  #include "assym.h"
  30      -#endif
  31   29  
  32   30  #include <sys/sun4asi.h>
  33   31  #include <sys/machparam.h>
  34   32  #include <vm/hat_sfmmu.h>
  35   33  
  36   34  /*
  37   35   * This file contains a kmdb-support function which retrieves the TTE for a
  38   36   * given VA/context pair, and returns it to the caller if the TTE is valid.
  39   37   * The code here is essentially an assembly implementation of the unix-tte
  40   38   * word used to allow OBP to do the same thing.
↓ open down ↓ 202 lines elided ↑ open up ↑
 243  241   *                              return (tte);
 244  242   *                      else
 245  243   *                              return (0);
 246  244   *              }
 247  245   *      }
 248  246   *
 249  247   *      return (0);
 250  248   * }
 251  249   */
 252  250  
 253      -#if defined(lint)
 254      -/*ARGSUSED*/
 255      -int
 256      -kdi_vatotte(uintptr_t va, int cnum, tte_t *ttep)
 257      -{
 258      -        return (0);
 259      -}
 260      -
 261      -void
 262      -kdi_trap_vatotte(void)
 263      -{
 264      -}
 265      -
 266      -#else
 267      -
 268  251          /*
 269  252           * Invocation in normal context as a VA-to-TTE translator
 270  253           * for kernel context only. This routine returns 0 on
 271  254           * success and -1 on error.
 272  255           *
 273  256           * %o0 = VA, input register
 274  257           * %o1 = KCONTEXT
 275  258           * %o2 = ttep, output register
 276  259           */
 277  260          ENTRY_NP(kdi_vatotte)
↓ open down ↓ 58 lines elided ↑ open up ↑
 336  319          cmp     %g3, %g4
 337  320          ble     1b
 338  321          nop
 339  322  
 340  323          clr     %g1
 341  324  
 342  325  6:      jmp     %g7
 343  326          nop
 344  327          SET_SIZE(kdi_trap_vatotte)
 345  328  
 346      -#endif  /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX