From: Kevin O'Connor Date: Mon, 19 Jan 2015 17:41:33 +0000 (-0500) Subject: checkstack: Handle callw instruction X-Git-Tag: rel-1.8.0~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c9d97d52c17a8f8ee64002e15970cb1e54fa0134;p=seabios.git checkstack: Handle callw instruction Minor update to the checkstack.py tool. Signed-off-by: Kevin O'Connor --- 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)