From: Vineet Gupta Date: Fri, 1 Nov 2013 05:16:40 +0000 (+0530) Subject: ARC: [SMP] Fix build failures for large NR_CPUS X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~45^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e26e57454fae4f1d15c2e9fa965b7a8046ab34;p=pandora-kernel.git ARC: [SMP] Fix build failures for large NR_CPUS ST.as only takes S9 (255) for offset. This was going out of range when accessing a task_struct field with 4k NR_CPUS (due to 128b of coumaks itself in there). Workaround by using an intermediate register to do the address scaling. There is some duplication of fix for ctx_sw.c and ctx_sw_asm.S however given that C version will go away soon I'm not bothering to factor out the common code. Reported-by: Noam Camus Signed-off-by: Vineet Gupta --- Reading git-diff-tree failed