Skip to content

Commit

Permalink
sparc: Add checkstack support
Browse files Browse the repository at this point in the history
Add sparc support to checkstack.

Signed-off-by: Martin Habets <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Martin Habets authored and davem330 committed Oct 23, 2008
1 parent 8dd9453 commit d41e2d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/checkstack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# M68k port by Geert Uytterhoeven and Andreas Schwab
# AVR32 port by Haavard Skinnemoen <[email protected]>
# PARISC port by Kyle McMartin <[email protected]>
# sparc port by Martin Habets <[email protected]>
#
# Usage:
# objdump -d vmlinux | scripts/checkstack.pl [arch]
Expand Down Expand Up @@ -94,6 +95,9 @@
} elsif ($arch =~ /^blackfin$/) {
# 0: 00 e8 38 01 LINK 0x4e0;
$re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') {
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;
} else {
print("wrong or unknown architecture \"$arch\"\n");
exit
Expand Down

0 comments on commit d41e2d7

Please sign in to comment.