diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-02-11 09:22:57 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:45:58 -0500 |
commit | 080c37473eb671a037b3e9a315303851f0675be5 (patch) | |
tree | b407d85217f9c979eed57f2adb31bc3fb06a9c09 /arch/arc/Makefile | |
parent | 8872e9e513eba636c8d4266fe667660f73cd66e6 (diff) |
ARC: [optim] Cache "current" in Register r25
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r-- | arch/arc/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 29b5fcd9c4b6..5c98fc19d99d 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -20,6 +20,15 @@ export PLATFORM | |||
20 | cflags-y += -Iarch/arc/plat-$(PLATFORM)/include | 20 | cflags-y += -Iarch/arc/plat-$(PLATFORM)/include |
21 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ | 21 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ |
22 | 22 | ||
23 | ifdef CONFIG_ARC_CURR_IN_REG | ||
24 | # For a global register defintion, make sure it gets passed to every file | ||
25 | # We had a customer reported bug where some code built in kernel was NOT using | ||
26 | # any kernel headers, and missing the r25 global register | ||
27 | # Can't do unconditionally (like above) because of recursive include issues | ||
28 | # due to <linux/thread_info.h> | ||
29 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h | ||
30 | endif | ||
31 | |||
23 | atleast_gcc44 := $(call cc-ifversion, -gt, 0402, y) | 32 | atleast_gcc44 := $(call cc-ifversion, -gt, 0402, y) |
24 | cflags-$(atleast_gcc44) += -fsection-anchors | 33 | cflags-$(atleast_gcc44) += -fsection-anchors |
25 | 34 | ||