]> git.wh0rd.org - patches.git/blame - linux-blackfin-checkstack.patch
more random patches. who knows.
[patches.git] / linux-blackfin-checkstack.patch
CommitLineData
5e993f12 1diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
2index f7844f6..9226381 100755
3--- a/scripts/checkstack.pl
4+++ b/scripts/checkstack.pl
5@@ -73,6 +73,9 @@ my (@stack, $re, $x, $xs);
6 # pair for larger users. -- PFM.
7 #a00048e0: d4fc40f0 addi.l r15,-240,r15
8 $re = qr/.*addi\.l.*r15,-(([0-9]{2}|[3-9])[0-9]{2}),r15/o;
9+ } elsif ($arch =~ /^blackfin$/) {
10+ # 0: 00 e8 38 01 LINK 0x4e0;
11+ $re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
12 } else {
13 print("wrong or unknown architecture\n");
14 exit