aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-01-19 12:41:33 -0500
committerKevin O'Connor <kevin@koconnor.net>2015-01-19 12:41:33 -0500
commitc9d97d52c17a8f8ee64002e15970cb1e54fa0134 (patch)
treedc1a6e209b0ad654a3faf8152e1c6c3e949b5f05 /scripts
parent301dd092c2d04a5d70c94b9d873d810785e94a84 (diff)
downloadseabios-hppa-c9d97d52c17a8f8ee64002e15970cb1e54fa0134.zip
seabios-hppa-c9d97d52c17a8f8ee64002e15970cb1e54fa0134.tar.gz
seabios-hppa-c9d97d52c17a8f8ee64002e15970cb1e54fa0134.tar.bz2
checkstack: Handle callw instruction
Minor update to the checkstack.py tool. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkstack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/checkstack.py b/scripts/checkstack.py
index e86a649..b49b6c8 100755
--- a/scripts/checkstack.py
+++ b/scripts/checkstack.py
@@ -181,6 +181,8 @@ def calc():
noteCall(cur, subfuncs, insnaddr, calladdr, 0)
elif insn.startswith('calll'):
noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 4)
+ elif insn.startswith('callw'):
+ noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 2)
else:
print("unknown call", ref)
noteCall(cur, subfuncs, insnaddr, calladdr, stackusage)