diff options
author | Noam Camus <noamc@ezchip.com> | 2013-06-03 16:17:25 +0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-05-09 07:02:33 +0300 |
commit | 86c25466f7414d6396f1aaa13e4b34f36ec272d5 (patch) | |
tree | 908b67ed82896362bcb7e438c8b6849ea3b2a2c7 /arch/arc/include/asm/entry-compact.h | |
parent | b1f2f6f3cf5e37f0418f6cebf365cff7c3abf6d7 (diff) | |
download | linux-86c25466f7414d6396f1aaa13e4b34f36ec272d5.tar.xz |
ARC: [plat-eznps] Use dedicated identity auxiliary register.
With generic "identity" num of CPUs is limited to 256 (8 bit).
We use our alternative AUX register GLOBAL_ID (12 bit).
Now we can support up to 4096 CPUs.
Signed-off-by: Noam Camus <noamc@ezchip.com>
Diffstat (limited to 'arch/arc/include/asm/entry-compact.h')
-rw-r--r-- | arch/arc/include/asm/entry-compact.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arc/include/asm/entry-compact.h b/arch/arc/include/asm/entry-compact.h index 1d8f57cd6057..e0e1faf03c50 100644 --- a/arch/arc/include/asm/entry-compact.h +++ b/arch/arc/include/asm/entry-compact.h @@ -36,6 +36,10 @@ #include <asm/irqflags-compact.h> #include <asm/thread_info.h> /* For THREAD_SIZE */ +#ifdef CONFIG_ARC_PLAT_EZNPS +#include <plat/ctop.h> +#endif + /*-------------------------------------------------------------- * Switch to Kernel Mode stack if SP points to User Mode stack * @@ -296,11 +300,13 @@ bic \reg, sp, (THREAD_SIZE - 1) .endm +#ifndef CONFIG_ARC_PLAT_EZNPS /* Get CPU-ID of this core */ .macro GET_CPU_ID reg lr \reg, [identity] lsr \reg, \reg, 8 bmsk \reg, \reg, 7 .endm +#endif #endif /* __ASM_ARC_ENTRY_COMPACT_H */ |