Print this page
de-linting of .s files

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/dboot/dboot_asm.s
          +++ new/usr/src/uts/i86pc/dboot/dboot_asm.s
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #include <sys/asm_linkage.h>
  28   28  #include <sys/asm_misc.h>
  29   29  
  30      -#if defined(__lint)
  31      -
  32      -#include "dboot_asm.h"
  33      -
  34      -/* ARGSUSED */
  35      -uint32_t
  36      -get_cpuid_edx(uint32_t *eax)
  37      -{ return (0); }
  38      -
  39      -/* ARGSUSED */
  40      -void
  41      -outb(int port, uint8_t value)
  42      -{}
  43      -
  44      -/* ARGSUSED */
  45      -uint8_t
  46      -inb(int port)
  47      -{ return (0); }
  48      -
  49      -#else /* __lint */
  50      -
  51   30  #if defined(__amd64)
  52   31  
  53   32          /*
  54   33           * do a cpuid instruction, returning the eax/edx values
  55   34           *
  56   35           * uint32_t get_cpuid_edx(uint32_t *eax)
  57   36           */
  58   37          ENTRY_NP(get_cpuid_edx)
  59   38          pushq   %rbx
  60   39          movl    (%rdi), %eax
↓ open down ↓ 72 lines elided ↑ open up ↑
 133  112          SET_SIZE(inb)
 134  113  
 135  114          ENTRY(htonl)
 136  115          movl    4(%esp), %eax
 137  116          bswap   %eax
 138  117          ret
 139  118          SET_SIZE(htonl)
 140  119  
 141  120  #endif  /* __i386 */
 142  121  
 143      -#endif /* __lint */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX