Re: Intel P6 vs P7 system call performance

Linus Torvalds
2002-12-18T04:06:27Z

On Tue, 17 Dec 2002, Ulrich Drepper wrote:

> > - 0x55, /* push %ebp */
> > + 0x55, /* push %ebp */
> > + 0x5d, /* pop %ebp */
> > - 0x5d, /* pop %ebp */
>
> Instead of duplicating the push/pop %ebp just use the first one by using

No, it's not duplicating it. Look closer. It's just _moving_ it, so that
the old %ebp value will naturally be pointed to by %esp, which is what we
want.

Anyway, I reverted the %ebp games from my kernel, because they are
fundamentally not restartable and thus not really a good idea. Besides, it
might be wrong to try to optimize the fast system calls to handle six
arguments too, if that makes the (much more common case) the other system
calls slower. So the six-argument case might as well just continue to use
"int 0x80".

Linus