forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sparc support to checkstack. Signed-off-by: Martin Habets <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
# M68k port by Geert Uytterhoeven and Andreas Schwab | ||
# AVR32 port by Haavard Skinnemoen <[email protected]> | ||
# PARISC port by Kyle McMartin <[email protected]> | ||
# sparc port by Martin Habets <[email protected]> | ||
# | ||
# Usage: | ||
# objdump -d vmlinux | scripts/checkstack.pl [arch] | ||
|
@@ -94,6 +95,9 @@ | |
} elsif ($arch =~ /^blackfin$/) { | ||
# 0: 00 e8 38 01 LINK 0x4e0; | ||
$re = qr/.*[[:space:]]LINK[[:space:]]*(0x$x{1,8})/o; | ||
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') { | ||
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp | ||
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o; | ||
} else { | ||
print("wrong or unknown architecture \"$arch\"\n"); | ||
exit | ||
|