Skip to contentSkip to conversation

Add stack checking for Blackfin

PATCH New Mike Frysinger 1 participant 1 message Aug 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add stack checking for Blackfin

Simply fill out the bits in checkstack.pl for Blackfin. I thought I already sent this, but I don't see it in -mm anywhere ...

---
 scripts/checkstack.pl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
scripts/checkstack.pl +3 -0
index f7844f6..9226381 100755
@@ -73,6 +73,9 @@ my (@stack, $re, $x, $xs);
 		#     pair for larger users. -- PFM.
 		#a00048e0:       d4fc40f0        addi.l  r15,-240,r15
 		$re = qr/.*addi\.l.*r15,-(([0-9]{2}|[3-9])[0-9]{2}),r15/o;
+	} elsif ($arch =~ /^blackfin$/) {
+		#   0:   00 e8 38 01     LINK 0x4e0;
+		$re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o;
 	} else {
 		print("wrong or unknown architecture\n");
 		exit
Signature · 1 line
1.5.3.rc5