summaryrefslogtreecommitdiffstats
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-01-03 08:15:03 +0100
committerStafford Horne <shorne@gmail.com>2017-02-24 20:30:50 +0100
commitf72deab378db8eadb6d6eb06b6e2b90c9b681c81 (patch)
treef6c0f818bf9653b699a2746fa018d4647bf77427 /scripts/checkstack.pl
parentMAINTAINERS: Add the openrisc official repository (diff)
downloadlinux-f72deab378db8eadb6d6eb06b6e2b90c9b681c81.tar.xz
linux-f72deab378db8eadb6d6eb06b6e2b90c9b681c81.zip
scripts/checkstack.pl: Add openrisc support
Openrisc stack pointer is managed by decrementing r1. Add regexes to recognize this. Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to '')
-rwxr-xr-xscripts/checkstack.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index dd8397894d5c..42794348ef35 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -78,6 +78,9 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
} 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 'openrisc') {
+ # c000043c: 9c 21 fe f0 l.addi r1,r1,-272
+ $re = qr/.*l\.addi.*r1,r1,-(([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') {