Print this page
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>


   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # Copyright (c) 2010, Intel Corporation.
  26 # Copyright 2017 Joyent, Inc.
  27 #
  28 #       This Makefile defines file modules in the directory uts/i86pc
  29 #       and its children. These are the source files which are i86pc
  30 #       "implementation architecture" dependent.
  31 #
  32 
  33 #
  34 #       object lists
  35 #
  36 CORE_OBJS +=                    \
  37         acpi_stubs.o            \
  38         biosdisk.o              \
  39         bios_call.o             \
  40         cbe.o                   \
  41         cmi.o                   \
  42         cmi_hw.o                \
  43         cms.o                   \
  44         comm_page.o             \
  45         confunix.o              \
  46         cpu_idle.o              \


  58         dvma.o                  \
  59         fpu_subr.o              \
  60         fakebop.o               \
  61         fastboot.o              \
  62         fb_swtch.o              \
  63         graphics.o              \
  64         hardclk.o               \
  65         hat_i86.o               \
  66         hat_kdi.o               \
  67         hment.o                 \
  68         hold_page.o             \
  69         hrtimers.o              \
  70         htable.o                \
  71         hypercall.o             \
  72         hypersubr.o             \
  73         i86_mmu.o               \
  74         ibft.o                  \
  75         instr_size.o            \
  76         intr.o                  \
  77         kboot_mmu.o             \
  78         kdi_subr.o              \
  79         kdi_idt.o               \
  80         kdi_idthdl.o            \
  81         kdi_asm.o               \
  82         lgrpplat.o              \
  83         mach_kdi.o              \
  84         mach_sysconfig.o        \
  85         machdep.o               \
  86         mem_config.o            \
  87         mem_config_stubs.o      \
  88         mem_config_arch.o       \
  89         memlist_new.o           \
  90         memnode.o               \
  91         microcode.o             \
  92         microfind.o             \
  93         mlsetup.o               \
  94         mp_call.o               \
  95         mp_implfuncs.o          \
  96         mp_machdep.o            \
  97         mp_pc.o                 \
  98         mp_startup.o            \


 141         boot_mmu.o              \
 142         dboot_multiboot2.o      \
 143         $(FONT_OBJS)
 144 
 145 CORE_OBJS += $(BOOT_DRIVER_OBJS)
 146 
 147 #
 148 #       locore.o is special. It must be the first file relocated so that it
 149 #       it is relocated just where its name implies.
 150 #
 151 SPECIAL_OBJS_32 +=              \
 152         locore.o                \
 153         fast_trap_asm.o         \
 154         interrupt.o             \
 155         syscall_asm.o
 156 
 157 SPECIAL_OBJS_64 +=              \
 158         locore.o                \
 159         fast_trap_asm.o         \
 160         interrupt.o             \
 161         syscall_asm_amd64.o

 162 
 163 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
 164 
 165 #
 166 # Objects that get compiled into the identity mapped PT_LOAD section of unix
 167 # to handle the earliest part of booting.
 168 #
 169 DBOOT_OBJS_32 =
 170 
 171 DBOOT_OBJS_64 += dboot_elfload.o
 172 
 173 DBOOT_OBJS +=                   \
 174         dboot_asm.o             \
 175         dboot_grub.o            \
 176         dboot_printf.o          \
 177         dboot_startkern.o       \
 178         memcpy.o                \
 179         memset.o                \
 180         muldiv.o                \
 181         sha1.o                  \


 250 # the lint targets should also have a similar dependency, but they don't
 251 # since only C headers are included when #defined(__lint) is true.
 252 #
 253 
 254 ASSYM_DEPS      +=              \
 255         copy.o                  \
 256         desctbls_asm.o          \
 257         ddi_i86_asm.o           \
 258         exception.o             \
 259         fast_trap_asm.o         \
 260         float.o                 \
 261         i86_subr.o              \
 262         interrupt.o             \
 263         lock_prim.o             \
 264         locore.o                \
 265         mpcore.o                \
 266         sseblk.o                \
 267         swtch.o                 \
 268         syscall_asm.o           \
 269         syscall_asm_amd64.o     \

 270         cpr_wakecode.o
 271 
 272 CPR_IMPL_OBJS   = cpr_impl.o    cpr_wakecode.o
 273 
 274 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
 275 
 276 ASSYM_DEPS += kdi_asm.o


   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # Copyright (c) 2010, Intel Corporation.
  26 # Copyright 2018 Joyent, Inc.
  27 #
  28 #       This Makefile defines file modules in the directory uts/i86pc
  29 #       and its children. These are the source files which are i86pc
  30 #       "implementation architecture" dependent.
  31 #
  32 
  33 #
  34 #       object lists
  35 #
  36 CORE_OBJS +=                    \
  37         acpi_stubs.o            \
  38         biosdisk.o              \
  39         bios_call.o             \
  40         cbe.o                   \
  41         cmi.o                   \
  42         cmi_hw.o                \
  43         cms.o                   \
  44         comm_page.o             \
  45         confunix.o              \
  46         cpu_idle.o              \


  58         dvma.o                  \
  59         fpu_subr.o              \
  60         fakebop.o               \
  61         fastboot.o              \
  62         fb_swtch.o              \
  63         graphics.o              \
  64         hardclk.o               \
  65         hat_i86.o               \
  66         hat_kdi.o               \
  67         hment.o                 \
  68         hold_page.o             \
  69         hrtimers.o              \
  70         htable.o                \
  71         hypercall.o             \
  72         hypersubr.o             \
  73         i86_mmu.o               \
  74         ibft.o                  \
  75         instr_size.o            \
  76         intr.o                  \
  77         kboot_mmu.o             \

  78         kdi_idt.o               \
  79         kdi_idthdl.o            \
  80         kdi_asm.o               \
  81         lgrpplat.o              \
  82         mach_kdi.o              \
  83         mach_sysconfig.o        \
  84         machdep.o               \
  85         mem_config.o            \
  86         mem_config_stubs.o      \
  87         mem_config_arch.o       \
  88         memlist_new.o           \
  89         memnode.o               \
  90         microcode.o             \
  91         microfind.o             \
  92         mlsetup.o               \
  93         mp_call.o               \
  94         mp_implfuncs.o          \
  95         mp_machdep.o            \
  96         mp_pc.o                 \
  97         mp_startup.o            \


 140         boot_mmu.o              \
 141         dboot_multiboot2.o      \
 142         $(FONT_OBJS)
 143 
 144 CORE_OBJS += $(BOOT_DRIVER_OBJS)
 145 
 146 #
 147 #       locore.o is special. It must be the first file relocated so that it
 148 #       it is relocated just where its name implies.
 149 #
 150 SPECIAL_OBJS_32 +=              \
 151         locore.o                \
 152         fast_trap_asm.o         \
 153         interrupt.o             \
 154         syscall_asm.o
 155 
 156 SPECIAL_OBJS_64 +=              \
 157         locore.o                \
 158         fast_trap_asm.o         \
 159         interrupt.o             \
 160         syscall_asm_amd64.o     \
 161         kpti_trampolines.o
 162 
 163 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
 164 
 165 #
 166 # Objects that get compiled into the identity mapped PT_LOAD section of unix
 167 # to handle the earliest part of booting.
 168 #
 169 DBOOT_OBJS_32 =
 170 
 171 DBOOT_OBJS_64 += dboot_elfload.o
 172 
 173 DBOOT_OBJS +=                   \
 174         dboot_asm.o             \
 175         dboot_grub.o            \
 176         dboot_printf.o          \
 177         dboot_startkern.o       \
 178         memcpy.o                \
 179         memset.o                \
 180         muldiv.o                \
 181         sha1.o                  \


 250 # the lint targets should also have a similar dependency, but they don't
 251 # since only C headers are included when #defined(__lint) is true.
 252 #
 253 
 254 ASSYM_DEPS      +=              \
 255         copy.o                  \
 256         desctbls_asm.o          \
 257         ddi_i86_asm.o           \
 258         exception.o             \
 259         fast_trap_asm.o         \
 260         float.o                 \
 261         i86_subr.o              \
 262         interrupt.o             \
 263         lock_prim.o             \
 264         locore.o                \
 265         mpcore.o                \
 266         sseblk.o                \
 267         swtch.o                 \
 268         syscall_asm.o           \
 269         syscall_asm_amd64.o     \
 270         kpti_trampolines.o      \
 271         cpr_wakecode.o
 272 
 273 CPR_IMPL_OBJS   = cpr_impl.o    cpr_wakecode.o
 274 
 275 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h