Skip to content

Commit 98a001e

Browse files
benwrsnashif
authored andcommitted
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 <[email protected]>
1 parent bf2eb55 commit 98a001e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arc/core/reset.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,15 @@ SECTION_FUNC(TEXT,__start)
8787
mov_s r2, CONFIG_ISR_STACK_SIZE
8888
jl memset
8989

90+
#if CONFIG_RGF_NUM_BANKS != 1
9091
mov_s r0, _firq_stack
9192
mov_s r1, 0xaa
9293
mov_s r2, CONFIG_FIRQ_STACK_SIZE
9394
jl memset
9495
#endif
9596

97+
#endif /* CONFIG_INIT_STACKS */
98+
9699
mov sp, INIT_STACK
97100
add sp, sp, INIT_STACK_SIZE
98101

0 commit comments

Comments
 (0)