Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/tpm/tpm_hcall.s
          +++ new/usr/src/uts/common/io/tpm/tpm_hcall.s
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  
  27   27  /*
  28   28   * Hypervisor calls used by tpm driver
  29   29   */
  30   30  
  31   31  #include <sys/asm_linkage.h>
  32   32  
  33   33  #if defined(sun4v)
  34   34  #include <sys/hypervisor_api.h>
  35   35  
  36      -#if defined(lint) || defined(__lint)
  37      -
  38      -/*ARGSUSED*/
  39      -uint64_t
  40      -hcall_tpm_get(uint64_t locality, uint64_t offset, uint64_t size,
  41      -    uint64_t *value)
  42      -{
  43      -        return (0);
  44      -}
  45      -
  46      -/*ARGSUSED*/
  47      -uint64_t
  48      -hcall_tpm_put(uint64_t locality, uint64_t offset, uint64_t size,
  49      -    uint64_t value)
  50      -{
  51      -        return (0);
  52      -}
  53      -
  54      -#else  /* lint || __lint */
  55      -
  56   36  /*
  57   37   * hcall_tpm_get(uint64_t locality, uint64_t offset, uint64_t size,
  58   38   *     uint64_t *value)
  59   39   */
  60   40          ENTRY(hcall_tpm_get)
  61   41          mov     %o3, %g1
  62   42          mov     HV_TPM_GET, %o5
  63   43          ta      FAST_TRAP
  64   44          stx     %o1, [%g1]
  65   45          retl
↓ open down ↓ 5 lines elided ↑ open up ↑
  71   51   * hcall_tpm_put(uint64_t locality, uint64_t offset, uint64_t size,
  72   52   *     uint64_t value)
  73   53   */
  74   54          ENTRY(hcall_tpm_put)
  75   55          mov     HV_TPM_PUT, %o5
  76   56          ta      FAST_TRAP
  77   57          retl
  78   58          nop
  79   59          SET_SIZE(hcall_tpm_put)
  80   60  
  81      -#endif /* lint || __lint */
  82      -
  83   61  #endif /* defined(sun4v) */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX