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 @@
 #
 
 #
 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright 2018 Joyent, Inc.
+#
 
 #       This Makefile defines file modules in the directory uts/i86xpv
 #       and its children. These are the source files which are i86xpv
 #       "implementation architecture" dependent.
 #

@@ -63,11 +65,10 @@
         i86_mmu.o               \
         ibft.o                  \
         instr_size.o            \
         intr.o                  \
         kboot_mmu.o             \
-        kdi_subr.o              \
         kdi_idt.o               \
         kdi_idthdl.o            \
         kdi_asm.o               \
         lgrpplat.o              \
         mach_kdi.o              \

@@ -158,11 +159,12 @@
 
 SPECIAL_OBJS_64 +=              \
         locore.o                \
         fast_trap_asm.o         \
         interrupt.o             \
-        syscall_asm_amd64.o
+        syscall_asm_amd64.o     \
+        kpti_trampolines.o
 
 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
 
 #
 # object files used to boot into full kernel

@@ -250,7 +252,5 @@
         swtch.o                 \
         syscall_asm.o           \
         syscall_asm_amd64.o
 
 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
-
-ASSYM_DEPS += kdi_asm.o