mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* make checkstack on m68k
@ 2004-06-16 16:51 Geert Uytterhoeven
  2004-06-16 18:04 ` Jörn Engel
  2004-06-17 11:41 ` Andreas Schwab
  0 siblings, 2 replies; 13+ messages in thread
From: Geert Uytterhoeven @ 2004-06-16 16:51 UTC (permalink / raw)
  To: Jörn Engel; +Cc: Linux/m68k, Linux Kernel Development


I tried to add m68k support to `make checkstack', but got stuck due to my
limited knowledge of complex perl expressions. I actually need to catch both
expressions (incl. the one I commented out). Anyone who can help?

Anyway, here's a first run:
  - Add half-assed m68 support.
  - Make sure `make checkstack' uses the script in the source tree directory
    (BTW, I saw a few more targets in my eye corner that may need this)
  - Fix checkstack.pl naming

--- linux-2.6.7/Makefile	2004-06-16 13:06:15.000000000 +0200
+++ linux-m68k-2.6.7/Makefile	2004-06-16 18:27:13.000000000 +0200
@@ -1070,7 +1070,7 @@ endif #ifeq ($(mixed-targets),1)
 .PHONY: checkstack
 checkstack:
 	$(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
-	$(PERL) scripts/checkstack.pl $(ARCH)
+	$(PERL) $(src)/scripts/checkstack.pl $(ARCH)

 # FIXME Should go into a make.lib or something
 # ===========================================================================
--- linux-2.6.7/scripts/checkstack.pl	2004-06-09 14:51:23.000000000 +0200
+++ linux-m68k-2.6.7/scripts/checkstack.pl	2004-06-16 18:39:06.000000000 +0200
@@ -12,7 +12,7 @@
 #	Random bits by Matt Mackall <mpm@selenic.com>
 #
 #	Usage:
-#	objdump -d vmlinux | stackcheck_ppc.pl [arch]
+#	objdump -d vmlinux | stackcheck.pl [arch]
 #
 #	TODO :	Port to all architectures (one regex per arch)

@@ -40,6 +40,11 @@
 	} elsif ($arch =~ /^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 =~ /^m68k$/) {
+		#2b6c:       4e56 fb70       linkw %fp,#-1168
+		#$re = qr/.*linkw %fp,#-([0-9]{1,4})/o;
+		#1df770:       defc ffe4       addaw #-28,%sp
+		$re = qr/.*addaw #-([0-9]{1,4}),%sp/o;
 	} elsif ($arch =~ /^mips64$/) {
 		#8800402c:       67bdfff0        daddiu  sp,sp,-16
 		$re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-06-18 13:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 16:51 make checkstack on m68k Geert Uytterhoeven
2004-06-16 18:04 ` Jörn Engel
2004-06-17  8:25   ` Geert Uytterhoeven
2004-06-17 11:45     ` Jörn Engel
2004-06-17 11:41 ` Andreas Schwab
2004-06-17 15:17   ` Finn Thain
2004-06-17 15:31     ` Andreas Schwab
2004-06-17 18:26     ` Jörn Engel
2004-06-17 19:15       ` Geert Uytterhoeven
2004-06-17 19:36         ` Geert Uytterhoeven
2004-06-18 13:02           ` Jörn Engel
2004-06-18 13:16             ` Geert Uytterhoeven
2004-06-17 17:41   ` Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®