Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/vm/mach_sfmmu_asm.s
          +++ new/usr/src/uts/sun4v/vm/mach_sfmmu_asm.s
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*
  27   27   * SFMMU primitives.  These primitives should only be used by sfmmu
  28   28   * routines.
  29   29   */
  30   30  
  31      -#if defined(lint)
  32      -#include <sys/types.h>
  33      -#else   /* lint */
  34   31  #include "assym.h"
  35      -#endif  /* lint */
  36   32  
  37   33  #include <sys/asm_linkage.h>
  38   34  #include <sys/machtrap.h>
  39   35  #include <sys/machasi.h>
  40   36  #include <sys/sun4asi.h>
  41   37  #include <sys/pte.h>
  42   38  #include <sys/mmu.h>
  43   39  #include <vm/hat_sfmmu.h>
  44   40  #include <vm/seg_spt.h>
  45   41  #include <sys/machparam.h>
↓ open down ↓ 1 lines elided ↑ open up ↑
  47   43  #include <sys/scb.h>
  48   44  #include <sys/intreg.h>
  49   45  #include <sys/machthread.h>
  50   46  #include <sys/clock.h>
  51   47  #include <sys/trapstat.h>
  52   48  
  53   49  /*
  54   50   * sfmmu related subroutines
  55   51   */
  56   52  
  57      -#if defined (lint)
  58      -
  59      -/* ARGSUSED */
  60      -void
  61      -sfmmu_raise_tsb_exception(uint64_t sfmmup, uint64_t rctx)
  62      -{}
  63      -
  64      -int
  65      -sfmmu_getctx_pri()
  66      -{ return(0); }
  67      -
  68      -int
  69      -sfmmu_getctx_sec()
  70      -{ return(0); }
  71      -
  72      -/* ARGSUSED */
  73      -void
  74      -sfmmu_setctx_sec(uint_t ctx)
  75      -{}
  76      -
  77      -/* ARGSUSED */
  78      -void
  79      -sfmmu_load_mmustate(sfmmu_t *sfmmup)
  80      -{
  81      -}
  82      -
  83      -#else   /* lint */
  84      -
  85   53  /*
  86   54   * Invalidate either the context of a specific victim or any process
  87   55   * currently running on this CPU. 
  88   56   *
  89   57   * %g1 = sfmmup whose ctx is being stolen (victim)
  90   58   *       when called from sfmmu_wrap_around, %g1 == INVALID_CONTEXT.
  91   59   * Note %g1 is the only input argument used by this xcall handler.
  92   60   */
  93   61  
  94   62          ENTRY(sfmmu_raise_tsb_exception)
↓ open down ↓ 328 lines elided ↑ open up ↑
 423  391                                                             
 424  392          bnz,pn  %xcc, 7b                                            
 425  393            nop                                                            
 426  394                                                                          
 427  395          sethi   %hi(sfmmu_panic10), %o0                                 
 428  396          call    panic                                                 
 429  397            or      %o0, %lo(sfmmu_panic10), %o0                         
 430  398  
 431  399          SET_SIZE(sfmmu_load_mmustate)
 432  400          
 433      -#endif /* lint */
 434      -
 435      -#if defined(lint)
 436      -
 437      -/* Prefetch "struct tsbe" while walking TSBs */
 438      -/*ARGSUSED*/
 439      -void
 440      -prefetch_tsbe_read(struct tsbe *tsbep)
 441      -{}
 442      -
 443      -/* Prefetch the tsbe that we are about to write */
 444      -/*ARGSUSED*/
 445      -void
 446      -prefetch_tsbe_write(struct tsbe *tsbep)
 447      -{}
 448      -
 449      -#else /* lint */
 450      -
 451  401          ENTRY(prefetch_tsbe_read)
 452  402          retl
 453  403          nop
 454  404          SET_SIZE(prefetch_tsbe_read)
 455  405  
 456  406          ENTRY(prefetch_tsbe_write)
 457  407          retl
 458  408          nop
 459  409          SET_SIZE(prefetch_tsbe_write)
 460      -#endif /* lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX