Print this page
11859 need swapgs mitigation
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@fingolfin.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/archsystm.h
          +++ new/usr/src/uts/intel/sys/archsystm.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright 2018 Joyent, Inc.
       24 + * Copyright 2019 Joyent, Inc.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_ARCHSYSTM_H
  28   28  #define _SYS_ARCHSYSTM_H
  29   29  
  30   30  /*
  31   31   * A selection of ISA-dependent interfaces
  32   32   */
  33   33  
  34   34  #include <vm/seg_enum.h>
↓ open down ↓ 52 lines elided ↑ open up ↑
  87   87  extern void brand_sys_syscall_int(), tr_brand_sys_syscall_int();
  88   88  extern int update_sregs();
  89   89  extern void reset_sregs();
  90   90  #elif defined(__i386)
  91   91  extern void sys_call();
  92   92  extern void tr_sys_call();
  93   93  extern void brand_sys_call();
  94   94  #endif
  95   95  extern void sys_sysenter();
  96   96  extern void tr_sys_sysenter();
  97      -extern void _sys_sysenter_post_swapgs();
  98   97  extern void brand_sys_sysenter();
  99   98  extern void tr_brand_sys_sysenter();
 100      -extern void _brand_sys_sysenter_post_swapgs();
 101   99  
 102  100  extern void dosyscall(void);
 103  101  
 104  102  extern void bind_hwcap(void);
 105  103  
 106  104  extern uint16_t inw(int port);
 107  105  extern uint32_t inl(int port);
 108  106  extern void outw(int port, uint16_t value);
 109  107  extern void outl(int port, uint32_t value);
 110  108  
↓ open down ↓ 118 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX