Skip to content

Commit 2a0ea7d

Browse files
committed
Merge tag 'arc-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
Pull ARC fixes from Vineet Gupta: "ARC is back after radio silence in 4.17: - Fix CONFIG_SWAP [Alexey] - Robustify cmpxchg emulation for systems w/o atomics [Alexey / PeterZ] - Allow mprotext(PROT_EXEC) for stack mappings [Vineet] - HSDK platform enable PCIe, APG GPIO [Gustavo] - miscll other fixes, config updates etc" * tag 'arc-4.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: ARCv2: [plat-hsdk]: Save accl reg pair by default ARC: mm: allow mprotect to make stack mappings executable ARC: Fix CONFIG_SWAP ARC: [arcompact] entry.S: minor code movement ARC: configs: Remove CONFIG_INITRAMFS_SOURCE from defconfigs ARC: configs: remove no longer needed CONFIG_DEVPTS_MULTIPLE_INSTANCES ARC: Improve cmpxchg syscall implementation ARC: [plat-hsdk]: Configure APB GPIO controller on ARC HSDK platform ARC: [plat-hsdk] Add PCIe support ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP ARC: Explicitly add -mmedium-calls to CFLAGS
2 parents 293bccc + af1fc5b commit 2a0ea7d

24 files changed

Lines changed: 112 additions & 47 deletions

‎arch/arc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ config ARC_HAS_DIV_REM
413413

414414
config ARC_HAS_ACCL_REGS
415415
bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
416-
default n
416+
default y
417417
help
418418
Depending on the configuration, CPU can contain accumulator reg-pair
419419
(also referred to as r58:r59). These can also be used by gcc as GPR so

‎arch/arc/Makefile‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ endif
1616

1717
KBUILD_DEFCONFIG := nsim_700_defconfig
1818

19-
cflags-y += -fno-common -pipe -fno-builtin -D__linux__
19+
cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
2020
cflags-$(CONFIG_ISA_ARCOMPACT) += -mA7
2121
cflags-$(CONFIG_ISA_ARCV2) += -mcpu=archs
2222

@@ -140,16 +140,3 @@ dtbs: scripts
140140

141141
archclean:
142142
$(Q)$(MAKE) $(clean)=$(boot)
143-
144-
# Hacks to enable final link due to absence of link-time branch relexation
145-
# and gcc choosing optimal(shorter) branches at -O3
146-
#
147-
# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
148-
# However lib/decompress_inflate.o (.init.text) calls
149-
# zlib_inflate_workspacesize (.text) causing relocation errors.
150-
# Thus forcing all exten calls in this file to be long calls
151-
export CFLAGS_decompress_inflate.o = -mmedium-calls
152-
export CFLAGS_initramfs.o = -mmedium-calls
153-
ifdef CONFIG_SMP
154-
export CFLAGS_core.o = -mmedium-calls
155-
endif

‎arch/arc/configs/axs101_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../arc_initramfs/"
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_VM_EVENT_COUNTERS is not set

‎arch/arc/configs/axs103_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_VM_EVENT_COUNTERS is not set

‎arch/arc/configs/axs103_smp_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_VM_EVENT_COUNTERS is not set

‎arch/arc/configs/haps_hs_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1514
CONFIG_EXPERT=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_COMPAT_BRK is not set

‎arch/arc/configs/haps_hs_smp_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_VM_EVENT_COUNTERS is not set

‎arch/arc/configs/hsdk_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_NAMESPACES=y
99
# CONFIG_UTS_NS is not set
1010
# CONFIG_PID_NS is not set
1111
CONFIG_BLK_DEV_INITRD=y
12-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1312
CONFIG_EMBEDDED=y
1413
CONFIG_PERF_EVENTS=y
1514
# CONFIG_VM_EVENT_COUNTERS is not set

‎arch/arc/configs/nsim_700_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../arc_initramfs/"
1514
CONFIG_KALLSYMS_ALL=y
1615
CONFIG_EMBEDDED=y
1716
CONFIG_PERF_EVENTS=y

‎arch/arc/configs/nsim_hs_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
1514
CONFIG_KALLSYMS_ALL=y
1615
CONFIG_EMBEDDED=y
1716
CONFIG_PERF_EVENTS=y

0 commit comments

Comments
 (0)