Skip to content

Commit bed3097

Browse files
committed
ARC: pt_regs update #0: remove kernel stack canary
This stack slot is going to be used in subsequent commits Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 3e1ae44 commit bed3097

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

arch/arc/include/asm/entry.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,6 @@
326326
/* With current tsk in r9, get it's kernel mode stack base */
327327
GET_TSK_STACK_BASE r9, r9
328328

329-
#ifdef PT_REGS_CANARY
330-
st 0xabcdabcd, [r9, 0]
331-
#endif
332-
333329
/* Save Pre Intr/Exception User SP on kernel stack */
334330
st.a sp, [r9, -12] ; Make room for orig_r0 and orig_r8
335331

@@ -437,11 +433,6 @@
437433
lr r9, [erbta]
438434
st.a r9, [sp, -4]
439435

440-
#ifdef PT_REGS_CANARY
441-
mov r9, 0xdeadbeef
442-
st r9, [sp, -4]
443-
#endif
444-
445436
/* move up by 1 word to "create" pt_regs->"stack_place_holder" */
446437
sub sp, sp, 4
447438
.endm
@@ -540,10 +531,6 @@
540531
lr r9, [bta_l1]
541532
st.a r9, [sp, -4]
542533

543-
#ifdef PT_REGS_CANARY
544-
mov r9, 0xdeadbee1
545-
st r9, [sp, -4]
546-
#endif
547534
/* move up by 1 word to "create" pt_regs->"stack_place_holder" */
548535
sub sp, sp, 4
549536
.endm
@@ -575,11 +562,6 @@
575562
lr r9, [bta_l2]
576563
st.a r9, [sp, -4]
577564

578-
#ifdef PT_REGS_CANARY
579-
mov r9, 0xdeadbee2
580-
st r9, [sp, -4]
581-
#endif
582-
583565
/* move up by 1 word to "create" pt_regs->"stack_place_holder" */
584566
sub sp, sp, 4
585567
.endm

0 commit comments

Comments
 (0)