Print this page
4374 dn_free_ranges should use range_tree_t
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ia32/ml/i86_subr.s
          +++ new/usr/src/uts/intel/ia32/ml/i86_subr.s
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  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 (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       25 + * Copyright (c) 2014 by Delphix. All rights reserved.
  25   26   */
  26   27  
  27   28  /*
  28   29   *  Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.
  29   30   *  Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
  30   31   *    All Rights Reserved
  31   32   */
  32   33  
  33   34  /*
  34   35   * Copyright (c) 2009, Intel Corporation.
↓ open down ↓ 2803 lines elided ↑ open up ↑
2838 2839  #elif defined(__i386)
2839 2840  
2840 2841          ENTRY(highbit)
2841 2842          movl    $-1, %eax
2842 2843          bsrl    4(%esp), %eax
2843 2844          incl    %eax
2844 2845          ret
2845 2846          SET_SIZE(highbit)
2846 2847  
2847 2848  #endif  /* __i386 */
     2849 +#endif  /* __lint */
     2850 +
     2851 +#if defined(__lint)
     2852 +
     2853 +/*ARGSUSED*/
     2854 +int
     2855 +highbit64(uint64_t i)
     2856 +{ return (0); }
     2857 +
     2858 +#else   /* __lint */
     2859 +
     2860 +#if defined(__amd64)
     2861 +
     2862 +        ENTRY(highbit64)
     2863 +        movl    $-1, %eax
     2864 +        bsrq    %rdi, %rax
     2865 +        incl    %eax
     2866 +        ret
     2867 +        SET_SIZE(highbit64)
     2868 +
     2869 +#elif defined(__i386)
     2870 +
     2871 +        ENTRY(highbit64)
     2872 +        bsrl    8(%esp), %eax
     2873 +        jz      .lowbit
     2874 +        addl    $32, %eax
     2875 +        jmp     .done
     2876 +
     2877 +.lowbit:
     2878 +        movl    $-1, %eax
     2879 +        bsrl    4(%esp), %eax
     2880 +.done:
     2881 +        incl    %eax
     2882 +        ret
     2883 +        SET_SIZE(highbit64)
     2884 +
     2885 +#endif  /* __i386 */
2848 2886  #endif  /* __lint */
2849 2887  
2850 2888  #if defined(__lint)
2851 2889  
2852 2890  /*ARGSUSED*/
2853 2891  uint64_t
2854 2892  rdmsr(uint_t r)
2855 2893  { return (0); }
2856 2894  
2857 2895  /*ARGSUSED*/
↓ open down ↓ 1544 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX