Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/ml/comm_page.s
          +++ new/usr/src/uts/i86pc/ml/comm_page.s
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  /*
  14   14   * Copyright 2016 Joyent, Inc.
  15   15   */
  16   16  
  17   17  #include <sys/asm_linkage.h>
  18   18  #include <sys/asm_misc.h>
  19   19  #include <sys/param.h>
  20   20  #include <sys/comm_page.h>
  21   21  #include <sys/tsc.h>
  22   22  
  23      -#if defined(_GENCTF) || defined(__lint)
       23 +#if defined(_GENCTF)
  24   24  
  25   25  hrtime_t tsc_last;
  26   26  hrtime_t tsc_resume_cap;
  27   27  hrtime_t tsc_hrtime_base;
  28   28  uint32_t tsc_max_delta;
  29   29  volatile uint32_t hres_lock;
  30   30  uint32_t tsc_type;
  31   31  uint32_t nsec_scale;
  32   32  int64_t hrestime_adj;
  33   33  hrtime_t hres_last_tick;
  34   34  uint32_t tsc_ncpu;
  35   35  volatile timestruc_t hrestime;
  36   36  hrtime_t tsc_sync_tick_delta[NCPU];
  37   37  
  38   38  comm_page_t comm_page;
  39   39  
  40      -#else /* defined(_GENCTF) || defined(__lint) */
       40 +#else /* defined(_GENCTF) */
  41   41  
  42   42  #include "assym.h"
  43   43  
  44   44  /*
  45   45   * x86 Comm Page
  46   46   *
  47   47   * This is the definition for the comm page on x86.  The purpose of this struct
  48   48   * is to consolidate certain pieces of kernel state into one contiguous section
  49   49   * of memory in order for it to be exposed (read-only) to userspace.  The
  50   50   * struct contents are defined by hand so that member variables will maintain
↓ open down ↓ 27 lines elided ↑ open up ↑
  78   78          /* _cp_pad */
  79   79          .fill   1, 4, 0
  80   80          DGDEF2(hrestime, _MUL(2, 8))
  81   81          .fill   2, 8, 0
  82   82          DGDEF2(tsc_sync_tick_delta, _MUL(NCPU, 8))
  83   83          .fill   _CONST(NCPU), 8, 0
  84   84  
  85   85          /* pad out the rest of the page from the struct end */
  86   86          .fill   _CONST(COMM_PAGE_SIZE - COMM_PAGE_S_SIZE), 1, 0
  87   87  
  88      -#endif /* defined(_GENCTF) || defined(__lint) */
       88 +#endif /* defined(_GENCTF) */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX