Skip to content

Commit f3d2893

Browse files
Wayne Rennashif
authored andcommitted
arch: arc: stack check will be disabled in exception
stack check bit of status32/sec_stat will be cleared automically in exception entry. so remove the redundent codes Signed-off-by: Wayne Ren <[email protected]>
1 parent 49732b2 commit f3d2893

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

arch/arc/core/fault_s.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@ SECTION_SUBSEC_FUNC(TEXT,__fault,__ev_dc_error)
6565
SECTION_SUBSEC_FUNC(TEXT,__fault,__ev_maligned)
6666

6767
_exc_entry:
68-
69-
#ifdef CONFIG_ARC_STACK_CHECKING
70-
st r0, [saved_value]
71-
/* disable stack checking */
72-
lr r0, [_ARC_V2_STATUS32]
73-
bclr r0, r0, _ARC_V2_STATUS32_SC_BIT
74-
kflag r0
75-
ld r0, [saved_value]
76-
#endif
7768
st sp, [saved_value]
7869
/*
7970
* re-use the top part of interrupt stack as exception
@@ -214,13 +205,6 @@ _do_non_syscall_trap:
214205
lr r0,[_ARC_V2_ERET]
215206
st_s r0, [sp, ___isf_t_pc_OFFSET] /* eret into pc */
216207

217-
#ifdef CONFIG_ARC_STACK_CHECKING
218-
/* disable stack checking */
219-
lr r0, [_ARC_V2_STATUS32]
220-
bclr r0, r0, _ARC_V2_STATUS32_SC_BIT
221-
kflag r0
222-
#endif
223-
224208
ld r1, [exc_nest_count]
225209
add r0, r1, 1
226210
st r0, [exc_nest_count]

0 commit comments

Comments
 (0)