]> git.neil.brown.name Git - history.git/commit
[PATCH] Merge lcall7 and lcall27 code paths in ia32
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Wed, 20 Nov 2002 04:00:09 +0000 (20:00 -0800)
committerPetr Vandrovec <vandrove@vc.cvut.cz>
Wed, 20 Nov 2002 04:00:09 +0000 (20:00 -0800)
commitbb0d3f5d4f135dd65b5a570d66abefaf622f2c28
tree65cf49033724930d700cbc0ce35201e7663f8a28
parent37256d28aacf841a25c62910abf586bd271e9632
[PATCH] Merge lcall7 and lcall27 code paths in ia32

lcall7 and lcall27 code paths are almost identical, except one
constant. This code merges these two paths together, by moving
constant to the beginning of function.

It is possible to eliminate even more of lcall7 and lcall27
code paths, but at cost of splitting SAVE_ALL into two halves,
and I do not want to do that. But if you think that it is worth
of effort, I can save 16 more bytes, but at cost of speed.

Side effects of merge is that now stack is addressed relative
to %ebx instead of relative to %esp, so generated code is
shorter and faster.
arch/i386/kernel/entry.S