diff options
author | Jörn Engel <joern@wohnheim.fh-wedel.de> | 2004-06-29 05:20:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-29 05:20:40 -0700 |
commit | a5b3d50df1288fa8dbf74861b9e75a0b9b4b46d4 (patch) | |
tree | b6f5a23d261d5e1c8c57a51e907fcb0fae671a1e /scripts | |
parent | 4ddc09038885e0906efea13e978be192147ef60f (diff) | |
download | history-a5b3d50df1288fa8dbf74861b9e75a0b9b4b46d4.tar.gz |
[PATCH] Add m68k support to checkstack
Add m68k support to checkstack.pl
Regular expression combination by Andres Schwab
Signed-off-by: <geert@linux-m68k.org>
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/checkstack.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 073704ef6a6cec..4f212358dbbb0a 100644 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -10,6 +10,7 @@ # IA64 port via Andreas Dilger # Arm port by Holger Schurig # Random bits by Matt Mackall <mpm@selenic.com> +# M68k port by Geert Uytterhoeven and Andreas Schwab # # Usage: # objdump -d vmlinux | stackcheck_ppc.pl [arch] @@ -41,6 +42,10 @@ my (@stack, $re, $x, $xs); } elsif ($arch eq 'ia64') { #e0000000044011fc: 01 0f fc 8c adds r12=-384,r12 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o; + } elsif ($arch eq 'm68k') { + # 2b6c: 4e56 fb70 linkw %fp,#-1168 + # 1df770: defc ffe4 addaw #-28,%sp + $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; } elsif ($arch eq 'mips64') { #8800402c: 67bdfff0 daddiu sp,sp,-16 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; |