mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
tools/checkstack.pl: Support thumb2 function prologue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ie4fc9e39f4ef3490013425d2c8444a53d4ab6568
This commit is contained in:
+2
-2
@@ -115,12 +115,12 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
|
||||
}
|
||||
|
||||
#
|
||||
# To count stack usage of push {*, fp, ip, lr, pc} instruction in ARM,
|
||||
# To count stack usage of push {*} instruction in ARM,
|
||||
# if FRAME POINTER is enabled.
|
||||
# e.g. c01f0d48: e92ddff0 push {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
|
||||
#
|
||||
sub arm_push_handling {
|
||||
my $regex = qr/.*push.*fp, ip, lr, pc}/o;
|
||||
my $regex = qr/.*push.*}/o;
|
||||
my $size = 0;
|
||||
my $line_arg = shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user