Print this page
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.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 ↓ 15 lines elided ↑ open up ↑
  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   25   * Copyright (c) 2014 by Delphix. All rights reserved.
  26      - * Copyright 2016 Joyent, Inc.
       26 + * Copyright 2018 Joyent, Inc.
  27   27   */
  28   28  
  29   29  /*
  30   30   *  Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.
  31   31   *  Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
  32   32   *    All Rights Reserved
  33   33   */
  34   34  
  35   35  /*
  36   36   * Copyright (c) 2009, Intel Corporation.
↓ open down ↓ 392 lines elided ↑ open up ↑
 429  429  #endif  /* __lint */
 430  430  
 431  431  /*
 432  432   * Invalidate a single page table entry in the TLB
 433  433   */
 434  434  
 435  435  #if defined(__lint)
 436  436  
 437  437  /* ARGSUSED */
 438  438  void
 439      -mmu_tlbflush_entry(caddr_t m)
      439 +mmu_invlpg(caddr_t m)
 440  440  {}
 441  441  
 442  442  #else   /* __lint */
 443  443  
 444      -#if defined(__amd64)
 445      -
 446      -        ENTRY(mmu_tlbflush_entry)
      444 +        ENTRY(mmu_invlpg)
 447  445          invlpg  (%rdi)
 448  446          ret
 449      -        SET_SIZE(mmu_tlbflush_entry)
      447 +        SET_SIZE(mmu_invlpg)
 450  448  
 451      -#elif defined(__i386)
 452      -
 453      -        ENTRY(mmu_tlbflush_entry)
 454      -        movl    4(%esp), %eax
 455      -        invlpg  (%eax)
 456      -        ret
 457      -        SET_SIZE(mmu_tlbflush_entry)
 458      -
 459      -#endif  /* __i386 */
 460  449  #endif  /* __lint */
 461  450  
 462  451  
 463  452  /*
 464  453   * Get/Set the value of various control registers
 465  454   */
 466  455  
 467  456  #if defined(__lint)
 468  457  
 469  458  ulong_t
↓ open down ↓ 3946 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX