Commit d41e2d7317cd55cc5135356a05c289537b0f6d70
Committed by
David S. Miller
1 parent
8dd9453737
Exists in
master
and in
20 other branches
sparc: Add checkstack support
Add sparc support to checkstack. Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
scripts/checkstack.pl
... | ... | @@ -14,6 +14,7 @@ |
14 | 14 | # M68k port by Geert Uytterhoeven and Andreas Schwab |
15 | 15 | # AVR32 port by Haavard Skinnemoen <hskinnemoen@atmel.com> |
16 | 16 | # PARISC port by Kyle McMartin <kyle@parisc-linux.org> |
17 | +# sparc port by Martin Habets <errandir_news@mph.eclipse.co.uk> | |
17 | 18 | # |
18 | 19 | # Usage: |
19 | 20 | # objdump -d vmlinux | scripts/checkstack.pl [arch] |
... | ... | @@ -94,6 +95,9 @@ |
94 | 95 | } elsif ($arch =~ /^blackfin$/) { |
95 | 96 | # 0: 00 e8 38 01 LINK 0x4e0; |
96 | 97 | $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; | |
97 | 101 | } else { |
98 | 102 | print("wrong or unknown architecture \"$arch\"\n"); |
99 | 103 | exit |