Skip to content

Commit d41e2d7

Browse files
Martin Habetsdavem330
authored andcommitted
sparc: Add checkstack support
Add sparc support to checkstack. Signed-off-by: Martin Habets <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8dd9453 commit d41e2d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/checkstack.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# M68k port by Geert Uytterhoeven and Andreas Schwab
1515
# AVR32 port by Haavard Skinnemoen <[email protected]>
1616
# PARISC port by Kyle McMartin <[email protected]>
17+
# sparc port by Martin Habets <[email protected]>
1718
#
1819
# Usage:
1920
# objdump -d vmlinux | scripts/checkstack.pl [arch]
@@ -94,6 +95,9 @@
9495
} elsif ($arch =~ /^blackfin$/) {
9596
# 0: 00 e8 38 01 LINK 0x4e0;
9697
$re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
98+
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') {
99+
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp
100+
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;
97101
} else {
98102
print("wrong or unknown architecture \"$arch\"\n");
99103
exit

0 commit comments

Comments
 (0)