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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/Makefile.rules
          +++ new/usr/src/uts/intel/Makefile.rules
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24      -# Copyright 2012 Joyent, Inc.  All rights reserved.
       24 +# Copyright 2018 Joyent, Inc.  All rights reserved.
  25   25  # Copyright 2017 Nexenta Systems, Inc.
  26   26  #
  27   27  
  28   28  #
  29   29  #       This Makefile defines all file modules and build rules for the
  30   30  # directory uts/intel and its children. These are the source files which
  31   31  # are specific to the intel processor.
  32   32  #
  33   33  #       The following two-level ordering must be maintained in this file.
  34   34  #         Lines are sorted first in order of decreasing specificity based on
↓ open down ↓ 230 lines elided ↑ open up ↑
 265  265          $(COMPILE.c) -o $@ $<
 266  266          $(CTFCONVERT_O)
 267  267  
 268  268  $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.c
 269  269          $(COMPILE.c) -o $@ $<
 270  270          $(CTFCONVERT_O)
 271  271  
 272  272  $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/%.s
 273  273          $(COMPILE.s) -o $@ $<
 274  274  
 275      -$(OBJS_DIR)/%.o:                $(UTSBASE)/intel/kdi/$(SUBARCH_DIR)/%.s
 276      -        $(COMPILE.s) -o $@ $<
 277      -
 278  275  $(OBJS_DIR)/%.o:                $(UTSBASE)/intel/zfs/%.c
 279  276          $(COMPILE.c) -o $@ $<
 280  277          $(CTFCONVERT_O)
 281  278  
 282  279  #
 283  280  # krtld compiled into unix
 284  281  #
 285  282  
 286  283  KRTLD_INC_PATH  = -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
 287  284  KRTLD_INC_PATH  += -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
↓ open down ↓ 194 lines elided ↑ open up ↑
 482  479  
 483  480  $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/os/%.c
 484  481          @($(LHEAD) $(LINT.c) $< $(LTAIL))
 485  482  
 486  483  $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/kdi/%.c
 487  484          @($(LHEAD) $(LINT.c) $< $(LTAIL))
 488  485  
 489  486  $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/kdi/%.s
 490  487          @($(LHEAD) $(LINT.s) $< $(LTAIL))
 491  488  
 492      -$(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/kdi/$(SUBARCH_DIR)/%.s
 493      -        @($(LHEAD) $(LINT.s) $< $(LTAIL))
 494      -
 495  489  $(LINTS_DIR)/%.ln:              $(UTSBASE)/intel/nskern/%.s
 496  490          @($(LHEAD) $(LINT.s) $< $(LTAIL))
 497  491  
 498  492  #
 499  493  # krtld lints
 500  494  #
 501  495  $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/krtld/%.c
 502  496          @($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
 503  497  
 504  498  $(LINTS_DIR)/%.ln:      $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
 505  499          @($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
 506  500  
 507  501  $(LINTS_DIR)/%.ln:      $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
 508  502          @($(LHEAD) $(LINT.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
 509  503  
 510  504  $(LINTS_DIR)/%.ln:      $(SRC)/common/util/$(SUBARCH_DIR)/%.c
 511  505          @($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
 512  506  
 513  507  $(OBJS_DIR)/kobj.ln             := CPPFLAGS += -D_DBOOT
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX