summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Walsh <benjamin.walsh@windriver.com>2016-11-24 10:04:05 -0500
committerAnas Nashif <anas.nashif@intel.com>2016-11-28 16:00:04 -0500
commit98a001e1f8335fb4098279de271ca9882fb18504 (patch)
treece2e4cc1c8a8bd9121c33ba9171581019728a8ff
parentbf2eb5542a334ad7e8224503937ae31358518bbd (diff)
arc: fix missing _firq_stack symbol when INIT_STACKS=y and NUM_BANKS=1
There is no FIRQ stack in the system in this case, so do not initialize it. Change-Id: I8bc068ce43ac8a39909994d8cc01ba0c6a17f4ae Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
-rw-r--r--arch/arc/core/reset.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/core/reset.S b/arch/arc/core/reset.S
index 03e947185..e151693b1 100644
--- a/arch/arc/core/reset.S
+++ b/arch/arc/core/reset.S
@@ -87,12 +87,15 @@ SECTION_FUNC(TEXT,__start)
mov_s r2, CONFIG_ISR_STACK_SIZE
jl memset
+#if CONFIG_RGF_NUM_BANKS != 1
mov_s r0, _firq_stack
mov_s r1, 0xaa
mov_s r2, CONFIG_FIRQ_STACK_SIZE
jl memset
#endif
+#endif /* CONFIG_INIT_STACKS */
+
mov sp, INIT_STACK
add sp, sp, INIT_STACK_SIZE