xtensa: fix build warning if no coprocessors present

Change-Id: Ib754795eff073500a38e4b383268b4f90c1763a7
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-02-08 15:33:17 -08:00
commit de099439b1

View file

@ -91,7 +91,9 @@ void _new_thread(char *pStack, size_t stackSize,
(XCHAL_TOTAL_SA_ALIGN < 16 ? 16 : XCHAL_TOTAL_SA_ALIGN));
/* TCS is located at top of stack while frames are located at end of it */
struct tcs *tcs = (struct tcs *)(pStack);
#if XCHAL_CP_NUM > 0
uint32_t *cpSA;
#endif
#ifdef CONFIG_DEBUG
printk("\nstackPtr = %p, stackSize = %d\n", pStack, stackSize);