Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Dec 2002 23:06:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Dec 2002 23:06:27 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:23566 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 17 Dec 2002 23:06:26 -0500 Date: Tue, 17 Dec 2002 20:15:05 -0800 (PST) From: Linus Torvalds To: Ulrich Drepper cc: Matti Aarnio , Hugh Dickins , Dave Jones , Ingo Molnar , , Subject: Re: Intel P6 vs P7 system call performance In-Reply-To: <3DFF8668.9080209@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 29 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/