Add sparc support to checkstack. Signed-off-by: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx> Index: linux/scripts/checkstack.pl =================================================================== --- linux.orig/scripts/checkstack.pl 2008-10-21 05:48:49.000000000 +0100 +++ linux/scripts/checkstack.pl 2008-10-21 06:10:35.000000000 +0100 @@ -14,6 +14,7 @@ # M68k port by Geert Uytterhoeven and Andreas Schwab # AVR32 port by Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> # PARISC port by Kyle McMartin <kyle@xxxxxxxxxxxxxxxx> +# sparc port by Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx> # # Usage: # objdump -d vmlinux | scripts/checkstack.pl [arch] @@ -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') { + # 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 -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html