Skip to content

Commit 0e5a47a

Browse files
tklausertorvalds
authored andcommitted
scripts/checkstack.pl: add support for nios2
Adjust checkstack.pl for the nios2 architecture. Link: http://lkml.kernel.org/r/20170116113052.15034-1-tklauser@distanz.ch Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Cc: Ley Foon Tan <lftan@altera.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 78c5250 commit 0e5a47a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/checkstack.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
} elsif ($arch eq 'mips') {
7979
#88003254: 27bdffe0 addiu sp,sp,-32
8080
$re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
81+
} elsif ($arch eq 'nios2') {
82+
#25a8: defffb04 addi sp,sp,-20
83+
$re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
8184
} elsif ($arch eq 'parisc' || $arch eq 'parisc64') {
8285
$re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
8386
} elsif ($arch eq 'ppc') {

0 commit comments

Comments
 (0)