[PATCH 1/2] checkstack.pl: Add blackfin support

From: Bernhard Reutner-Fischer
Date: Thu Jan 17 2019 - 16:58:49 EST


We've been carrying this since some time now.. Original submission:
http://lists.busybox.net/pipermail/busybox/2007-August/028420.html

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@xxxxxxxxx>
---
scripts/checkstack.pl | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 122aef5e4e14..8946fc99ad83 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -13,6 +13,7 @@
# sh64 port by Paul Mundt
# Random bits by Matt Mackall <mpm@xxxxxxxxxxx>
# M68k port by Geert Uytterhoeven and Andreas Schwab
+# blackfin port by Alex Landau
# AArch64, PARISC ports by Kyle McMartin
# sparc port by Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>
# ppc64le port by Breno Leitao <leitao@xxxxxxxxxx>
@@ -54,6 +55,9 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
} elsif ($arch eq 'arm') {
#c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
$re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o;
+ } elsif ($arch eq 'blackfin') {
+ # 52: 00 e8 03 00 LINK 0xc;
+ $re = qr/.*LINK (0x$x{1,5});$/o;
} elsif ($arch =~ /^x86(_64)?$/ || $arch =~ /^i[3456]86$/) {
#c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp
# or
--
2.20.1