mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / hexagon / Makefile
blob48fe08230a8088c669822a5ebb05e705318644ae
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for the Hexagon arch
4 KBUILD_DEFCONFIG = comet_defconfig
6 # Do not use GP-relative jumps
7 KBUILD_CFLAGS += -G0
8 LDFLAGS_vmlinux += -G0
10 # Do not use single-byte enums; these will overflow.
11 KBUILD_CFLAGS += -fno-short-enums
13 # Modules must use either long-calls, or use pic/plt.
14 # Use long-calls for now, it's easier. And faster.
15 # CFLAGS_MODULE += -fPIC
16 # LDFLAGS_MODULE += -shared
17 CFLAGS_MODULE += -mlong-calls
19 cflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION})
20 aflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION})
21 ldflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION})
23 KBUILD_CFLAGS += $(cflags-y)
24 KBUILD_AFLAGS += $(aflags-y)
26 # no KBUILD_LDFLAGS?
27 LDFLAGS += $(ldflags-y)
29 # Thread-info register will be r19. This value is not configureable;
30 # it is hard-coded in several files.
31 TIR_NAME := r19
32 KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__
33 KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME)
35 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
36 libs-y += $(LIBGCC)
38 head-y := arch/hexagon/kernel/head.o
40 core-y += arch/hexagon/kernel/ \
41 arch/hexagon/mm/ \
42 arch/hexagon/lib/