Skip to content

Commit 208ad00

Browse files
jkkmJiri Kosina
authored andcommitted
checkstack.pl: port to AArch64
AArch64 stores the frame pointer and return pointer, and decrements the stack. Also remove my (no longer valid) email address. Signed-off-by: Kyle McMartin <kyle@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent db4ced1 commit 208ad00

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/checkstack.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Random bits by Matt Mackall <mpm@selenic.com>
1414
# M68k port by Geert Uytterhoeven and Andreas Schwab
1515
# AVR32 port by Haavard Skinnemoen (Atmel)
16-
# PARISC port by Kyle McMartin <kyle@parisc-linux.org>
16+
# AArch64, PARISC ports by Kyle McMartin
1717
# sparc port by Martin Habets <errandir_news@mph.eclipse.co.uk>
1818
#
1919
# Usage:
@@ -45,7 +45,10 @@
4545
$x = "[0-9a-f]"; # hex character
4646
$xs = "[0-9a-f ]"; # hex character or space
4747
$funcre = qr/^$x* <(.*)>:$/;
48-
if ($arch eq 'arm') {
48+
if ($arch eq 'aarch64') {
49+
#ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp,#-80]!
50+
$re = qr/^.*stp.*sp,\#-([0-9]{1,8})\]\!/o;
51+
} elsif ($arch eq 'arm') {
4952
#c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
5053
$re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o;
5154
} elsif ($arch eq 'avr32') {

0 commit comments

Comments
 (0)