X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fcheckstack.pl;h=d716b76098bb670d76abff1eeff9830ff88ebfbc;hb=21af0297c7e56024a5ccc4d8ad2a590f9ec371ba;hp=b458e2acb4acf3e035d7e3bd66a4b4687e8d5965;hpb=fb9fc395174138983a49f2da982ed14caabbe741;p=linux-2.6 diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index b458e2acb4..d716b76098 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -13,9 +13,10 @@ # Random bits by Matt Mackall # M68k port by Geert Uytterhoeven and Andreas Schwab # AVR32 port by Haavard Skinnemoen +# PARISC port by Kyle McMartin # # Usage: -# objdump -d vmlinux | stackcheck.pl [arch] +# objdump -d vmlinux | scripts/checkstack.pl [arch] # # TODO : Port to all architectures (one regex per arch) @@ -61,6 +62,8 @@ my (@stack, $re, $x, $xs); } elsif ($arch eq 'mips') { #88003254: 27bdffe0 addiu sp,sp,-32 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; + } elsif ($arch eq 'parisc' || $arch eq 'parisc64') { + $re = qr/.*ldo ($x{1,8})\(sp\),sp/o; } elsif ($arch eq 'ppc') { #c00029f4: 94 21 ff 30 stwu r1,-208(r1) $re = qr/.*stwu.*r1,-($x{1,8})\(r1\)/o;