* [PATCH 1/2] checkstack.pl: Add blackfin support
@ 2019-01-17 21:58 Bernhard Reutner-Fischer
2019-01-17 21:58 ` [PATCH 2/2] checkstack.pl: Commentary typo fix Bernhard Reutner-Fischer
2019-01-18 7:54 ` [PATCH 1/2] checkstack.pl: Add blackfin support Geert Uytterhoeven
0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Reutner-Fischer @ 2019-01-17 21:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Bernhard Reutner-Fischer
We've been carrying this since some time now.. Original submission:
http://lists.busybox.net/pipermail/busybox/2007-August/028420.html
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
scripts/checkstack.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 122aef5e4e14..8946fc99ad83 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -13,6 +13,7 @@
# sh64 port by Paul Mundt
# Random bits by Matt Mackall <mpm@selenic.com>
# M68k port by Geert Uytterhoeven and Andreas Schwab
+# blackfin port by Alex Landau
# AArch64, PARISC ports by Kyle McMartin
# sparc port by Martin Habets <errandir_news@mph.eclipse.co.uk>
# ppc64le port by Breno Leitao <leitao@debian.org>
@@ -54,6 +55,9 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
} elsif ($arch eq 'arm') {
#c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
$re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o;
+ } elsif ($arch eq 'blackfin') {
+ # 52: 00 e8 03 00 LINK 0xc;
+ $re = qr/.*LINK (0x$x{1,5});$/o;
} elsif ($arch =~ /^x86(_64)?$/ || $arch =~ /^i[3456]86$/) {
#c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp
# or
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] checkstack.pl: Commentary typo fix
2019-01-17 21:58 [PATCH 1/2] checkstack.pl: Add blackfin support Bernhard Reutner-Fischer
@ 2019-01-17 21:58 ` Bernhard Reutner-Fischer
2019-01-18 7:54 ` [PATCH 1/2] checkstack.pl: Add blackfin support Geert Uytterhoeven
1 sibling, 0 replies; 4+ messages in thread
From: Bernhard Reutner-Fischer @ 2019-01-17 21:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Bernhard Reutner-Fischer
s/redution/reduction/
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
scripts/checkstack.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 8946fc99ad83..82ea54ac159c 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -31,7 +31,7 @@ use strict;
# $& (whole re) matches the complete objdump line with the stack growth
# $1 (first bracket) matches the size of the stack growth
#
-# $dre is similar, but for dynamic stack redutions:
+# $dre is similar, but for dynamic stack reductions:
# $& (whole re) matches the complete objdump line with the stack growth
# $1 (first bracket) matches the dynamic amount of the stack growth
#
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] checkstack.pl: Add blackfin support
2019-01-17 21:58 [PATCH 1/2] checkstack.pl: Add blackfin support Bernhard Reutner-Fischer
2019-01-17 21:58 ` [PATCH 2/2] checkstack.pl: Commentary typo fix Bernhard Reutner-Fischer
@ 2019-01-18 7:54 ` Geert Uytterhoeven
2019-01-18 8:54 ` Bernhard Reutner-Fischer
1 sibling, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2019-01-18 7:54 UTC (permalink / raw)
To: Bernhard Reutner-Fischer; +Cc: Linux Kernel Mailing List
Hi Bernhard,
Thanks for your patch!
On Thu, Jan 17, 2019 at 11:01 PM Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> We've been carrying this since some time now.. Original submission:
> http://lists.busybox.net/pipermail/busybox/2007-August/028420.html
>
> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
A similar patch was merged in commit 1e9535a591cf003e ("Add stack
checking for Blackfin").
In the mean time, blackfin support was removed from Linux in commit
4ba66a9760722ccb ("arch: remove blackfin port"), and from checkstack in
commit e53a05a49e10c7cf ("scripts/checkstack.pl: remove blackfin support").
Nevertheless, I can imagine it's nice to have it, as I have used
checkstack for non-Linux projects, too ;-)
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] 4+ messages in thread
* Re: [PATCH 1/2] checkstack.pl: Add blackfin support
2019-01-18 7:54 ` [PATCH 1/2] checkstack.pl: Add blackfin support Geert Uytterhoeven
@ 2019-01-18 8:54 ` Bernhard Reutner-Fischer
0 siblings, 0 replies; 4+ messages in thread
From: Bernhard Reutner-Fischer @ 2019-01-18 8:54 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux Kernel Mailing List, Bernhard Reutner-Fischer
On Fri, 18 Jan 2019 08:54:15 +0100
Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> A similar patch was merged in commit 1e9535a591cf003e ("Add stack
> checking for Blackfin").
>
> In the mean time, blackfin support was removed from Linux in commit
> 4ba66a9760722ccb ("arch: remove blackfin port"), and from checkstack in
> commit e53a05a49e10c7cf ("scripts/checkstack.pl: remove blackfin support").
>
> Nevertheless, I can imagine it's nice to have it, as I have used
> checkstack for non-Linux projects, too ;-)
Yea, so i'm retracting the patch, maybe you can revert e53a05a instead.
Please consider taking the 2/2 typo fix though.
thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-18 8:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17 21:58 [PATCH 1/2] checkstack.pl: Add blackfin support Bernhard Reutner-Fischer
2019-01-17 21:58 ` [PATCH 2/2] checkstack.pl: Commentary typo fix Bernhard Reutner-Fischer
2019-01-18 7:54 ` [PATCH 1/2] checkstack.pl: Add blackfin support Geert Uytterhoeven
2019-01-18 8:54 ` Bernhard Reutner-Fischer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.