summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/asm/htable.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-02-22 18:05:13 -0800
committerJohn Levon <john.levon@joyent.com>2018-03-13 20:33:26 +0000
commit60f89b42cd13d6888f948d7ffe4edcfa535e02a6 (patch)
treec60e2fa99bc8572c457a0908105f8570c56b834c /usr/src/uts/intel/asm/htable.h
parent0e957fcabecc0abb13226b12f474359f4ea711ea (diff)
downloadillumos-joyent-60f89b42cd13d6888f948d7ffe4edcfa535e02a6.tar.gz
OS-6546 Use PCID if KPTI is enabled
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Alex Wilson <alex.wilson@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Alex Wilson <alex.wilson@joyent.com>
Diffstat (limited to 'usr/src/uts/intel/asm/htable.h')
-rw-r--r--usr/src/uts/intel/asm/htable.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/usr/src/uts/intel/asm/htable.h b/usr/src/uts/intel/asm/htable.h
index dd1d72a3c1..2601111c6d 100644
--- a/usr/src/uts/intel/asm/htable.h
+++ b/usr/src/uts/intel/asm/htable.h
@@ -22,6 +22,8 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
#ifndef _ASM_HTABLE_H
@@ -36,8 +38,6 @@ extern "C" {
#if !defined(__lint) && defined(__GNUC__)
-#if defined(__i386) || defined(__amd64)
-
/*
* This set of atomic operations are designed primarily
* for some ia32 hat layer operations.
@@ -83,17 +83,6 @@ atomic_dec16(uint16_t *addr)
: "cc");
}
-extern __GNU_INLINE void
-mmu_tlbflush_entry(caddr_t addr)
-{
- __asm__ __volatile__(
- "invlpg %0"
- : "=m" (*addr)
- : "m" (*addr));
-}
-
-#endif /* __i386 || __amd64 */
-
#endif /* !__lint && __GNUC__ */
#ifdef __cplusplus