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


   5 # Common Development and Distribution License (the "License").
   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) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #


  25 
  26 #       This Makefile defines file modules in the directory uts/i86xpv
  27 #       and its children. These are the source files which are i86xpv
  28 #       "implementation architecture" dependent.
  29 #
  30 
  31 #
  32 #       object lists
  33 #
  34 CORE_OBJS +=                    \
  35         acpi_stubs.o            \
  36         balloon.o               \
  37         biosdisk.o              \
  38         cbe.o                   \
  39         cmi.o                   \
  40         cmi_hw.o                \
  41         cms.o                   \
  42         confunix.o              \
  43         cpuid.o                 \
  44         cpuid_subr.o            \


  48         ddi_impl.o              \
  49         dtrace_subr.o           \
  50         dvma.o                  \
  51         fakebop.o               \
  52         fpu_subr.o              \
  53         fastboot.o              \
  54         fb_swtch.o              \
  55         graphics.o              \
  56         hardclk.o               \
  57         hat_i86.o               \
  58         hat_kdi.o               \
  59         hment.o                 \
  60         hold_page.o             \
  61         hrtimers.o              \
  62         htable.o                \
  63         i86_mmu.o               \
  64         ibft.o                  \
  65         instr_size.o            \
  66         intr.o                  \
  67         kboot_mmu.o             \
  68         kdi_subr.o              \
  69         kdi_idt.o               \
  70         kdi_idthdl.o            \
  71         kdi_asm.o               \
  72         lgrpplat.o              \
  73         mach_kdi.o              \
  74         mach_sysconfig.o        \
  75         machdep.o               \
  76         mem_config_stubs.o      \
  77         memnode.o               \
  78         microcode.o             \
  79         mlsetup.o               \
  80         mp_call.o               \
  81         mp_implfuncs.o          \
  82         mp_machdep.o            \
  83         mp_startup.o            \
  84         memscrub.o              \
  85         notes.o                 \
  86         pci_bios.o              \
  87         pci_cfgacc.o            \
  88         pci_cfgacc_x86.o        \


 143         xenbus_xs.o             \
 144         xen_machdep.o           \
 145         xen_mmu.o               \
 146         xpv_panic.o             \
 147         xvdi.o
 148 
 149 #
 150 #       locore.o is special. It must be the first file relocated so that it
 151 #       it is relocated just where its name implies.
 152 #
 153 SPECIAL_OBJS_32 +=              \
 154         locore.o                \
 155         fast_trap_asm.o         \
 156         interrupt.o             \
 157         syscall_asm.o
 158 
 159 SPECIAL_OBJS_64 +=              \
 160         locore.o                \
 161         fast_trap_asm.o         \
 162         interrupt.o             \
 163         syscall_asm_amd64.o

 164 
 165 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
 166 
 167 #
 168 # object files used to boot into full kernel
 169 #
 170 DBOOT_OBJS_32 = muldiv.o
 171 
 172 DBOOT_OBJS_64 =
 173 
 174 DBOOT_OBJS +=                   \
 175         dboot_asm.o             \
 176         dboot_printf.o          \
 177         dboot_startkern.o       \
 178         dboot_xen.o             \
 179         hypercall.o             \
 180         hypersubr.o             \
 181         memcpy.o                \
 182         memset.o                \
 183         string.o                \


 235 ASSYM_DEPS      +=              \
 236         copy.o                  \
 237         desctbls_asm.o          \
 238         ddi_i86_asm.o           \
 239         exception.o             \
 240         fast_trap_asm.o         \
 241         float.o                 \
 242         hyperevent.o            \
 243         i86_subr.o              \
 244         kdi_asm.o               \
 245         interrupt.o             \
 246         lock_prim.o             \
 247         locore.o                \
 248         panic_asm.o             \
 249         sseblk.o                \
 250         swtch.o                 \
 251         syscall_asm.o           \
 252         syscall_asm_amd64.o
 253 
 254 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
 255 
 256 ASSYM_DEPS += kdi_asm.o


   5 # Common Development and Distribution License (the "License").
   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) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # Copyright 2018 Joyent, Inc.
  26 #
  27 
  28 #       This Makefile defines file modules in the directory uts/i86xpv
  29 #       and its children. These are the source files which are i86xpv
  30 #       "implementation architecture" dependent.
  31 #
  32 
  33 #
  34 #       object lists
  35 #
  36 CORE_OBJS +=                    \
  37         acpi_stubs.o            \
  38         balloon.o               \
  39         biosdisk.o              \
  40         cbe.o                   \
  41         cmi.o                   \
  42         cmi_hw.o                \
  43         cms.o                   \
  44         confunix.o              \
  45         cpuid.o                 \
  46         cpuid_subr.o            \


  50         ddi_impl.o              \
  51         dtrace_subr.o           \
  52         dvma.o                  \
  53         fakebop.o               \
  54         fpu_subr.o              \
  55         fastboot.o              \
  56         fb_swtch.o              \
  57         graphics.o              \
  58         hardclk.o               \
  59         hat_i86.o               \
  60         hat_kdi.o               \
  61         hment.o                 \
  62         hold_page.o             \
  63         hrtimers.o              \
  64         htable.o                \
  65         i86_mmu.o               \
  66         ibft.o                  \
  67         instr_size.o            \
  68         intr.o                  \
  69         kboot_mmu.o             \

  70         kdi_idt.o               \
  71         kdi_idthdl.o            \
  72         kdi_asm.o               \
  73         lgrpplat.o              \
  74         mach_kdi.o              \
  75         mach_sysconfig.o        \
  76         machdep.o               \
  77         mem_config_stubs.o      \
  78         memnode.o               \
  79         microcode.o             \
  80         mlsetup.o               \
  81         mp_call.o               \
  82         mp_implfuncs.o          \
  83         mp_machdep.o            \
  84         mp_startup.o            \
  85         memscrub.o              \
  86         notes.o                 \
  87         pci_bios.o              \
  88         pci_cfgacc.o            \
  89         pci_cfgacc_x86.o        \


 144         xenbus_xs.o             \
 145         xen_machdep.o           \
 146         xen_mmu.o               \
 147         xpv_panic.o             \
 148         xvdi.o
 149 
 150 #
 151 #       locore.o is special. It must be the first file relocated so that it
 152 #       it is relocated just where its name implies.
 153 #
 154 SPECIAL_OBJS_32 +=              \
 155         locore.o                \
 156         fast_trap_asm.o         \
 157         interrupt.o             \
 158         syscall_asm.o
 159 
 160 SPECIAL_OBJS_64 +=              \
 161         locore.o                \
 162         fast_trap_asm.o         \
 163         interrupt.o             \
 164         syscall_asm_amd64.o     \
 165         kpti_trampolines.o
 166 
 167 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
 168 
 169 #
 170 # object files used to boot into full kernel
 171 #
 172 DBOOT_OBJS_32 = muldiv.o
 173 
 174 DBOOT_OBJS_64 =
 175 
 176 DBOOT_OBJS +=                   \
 177         dboot_asm.o             \
 178         dboot_printf.o          \
 179         dboot_startkern.o       \
 180         dboot_xen.o             \
 181         hypercall.o             \
 182         hypersubr.o             \
 183         memcpy.o                \
 184         memset.o                \
 185         string.o                \


 237 ASSYM_DEPS      +=              \
 238         copy.o                  \
 239         desctbls_asm.o          \
 240         ddi_i86_asm.o           \
 241         exception.o             \
 242         fast_trap_asm.o         \
 243         float.o                 \
 244         hyperevent.o            \
 245         i86_subr.o              \
 246         kdi_asm.o               \
 247         interrupt.o             \
 248         lock_prim.o             \
 249         locore.o                \
 250         panic_asm.o             \
 251         sseblk.o                \
 252         swtch.o                 \
 253         syscall_asm.o           \
 254         syscall_asm_amd64.o
 255 
 256 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h