Print this page
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
@@ -20,10 +20,12 @@
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
#ifndef _ASM_HTABLE_H
#define _ASM_HTABLE_H
@@ -34,12 +36,10 @@
extern "C" {
#endif
#if !defined(__lint) && defined(__GNUC__)
-#if defined(__i386) || defined(__amd64)
-
/*
* This set of atomic operations are designed primarily
* for some ia32 hat layer operations.
*/
@@ -81,21 +81,10 @@
: "=m" (*addr)
: "m" (*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
}
#endif