diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-01-19 12:41:33 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-01-19 12:41:33 -0500 |
commit | c9d97d52c17a8f8ee64002e15970cb1e54fa0134 (patch) | |
tree | dc1a6e209b0ad654a3faf8152e1c6c3e949b5f05 /scripts | |
parent | 301dd092c2d04a5d70c94b9d873d810785e94a84 (diff) | |
download | seabios-c9d97d52c17a8f8ee64002e15970cb1e54fa0134.tar.gz |
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-x | scripts/checkstack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/checkstack.py b/scripts/checkstack.py index e86a649b..b49b6c8c 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) |