Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 24 Dec 2002 15:19:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 24 Dec 2002 15:19:25 -0500 Received: from mx1.elte.hu ([157.181.1.137]:35989 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Tue, 24 Dec 2002 15:19:24 -0500 Date: Tue, 24 Dec 2002 21:31:11 +0100 (CET) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Jamie Lokier , Ulrich Drepper , , , , , Matti Aarnio , , Subject: Re: Intel P6 vs P7 system call performance In-Reply-To: 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: 857 Lines: 20 On Tue, 24 Dec 2002, Linus Torvalds wrote: > I realized that there is really no reason to use __KERNEL_DS for this, > and that as far as the kernel is concerned, the only thing that matters > is that it's a flat 32-bit segment. So we might as well make the kernel > always load ES/DS with __USER_DS instead, which has the advantage that > we can avoid one set of segment loads for the "sysenter/sysexit" case. this basically hardcodes flat segment layout on x86. If anything (Wine?) modifies the default segments, it can wrap syscalls by saving/restoring the modified %ds and %es selectors explicitly. Ingo - 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/