From: Kevin O'Connor Date: Sun, 9 Aug 2009 17:10:47 +0000 (-0400) Subject: Update tools/checkstack.py - new compilers set %ebp in preamble. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=dbbb7cf9a334beadd1d4e5a8dddcf2b1b81ad839;hp=1625a75974b23b950edf637b5068b9007f2d6fac;p=seabios.git Update tools/checkstack.py - new compilers set %ebp in preamble. A 'movl %esp,%ebp' can occur in the preamble - note for proper stack usage checking. --- diff --git a/tools/checkstack.py b/tools/checkstack.py index aa38ea8..82becdd 100755 --- a/tools/checkstack.py +++ b/tools/checkstack.py @@ -78,6 +78,9 @@ def calc(): stackusage += int(im.group('num'), 16) if atstart: + if insn == 'movl %esp,%ebp': + # Still part of initial header + continue cur[1] = stackusage atstart = 0