Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Dec 2002 20:57:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Dec 2002 20:57:14 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:17415 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Fri, 27 Dec 2002 20:57:13 -0500 Message-ID: <3E0D06AA.80201@transmeta.com> Date: Fri, 27 Dec 2002 18:04:26 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: Ingo Molnar CC: Linus Torvalds , Jamie Lokier , Ulrich Drepper , bart@etpmod.phys.tue.nl, davej@codemonkey.org.uk, terje.eggestad@scali.com, Matti Aarnio , hugh@veritas.com, linux-kernel@vger.kernel.org Subject: Re: Intel P6 vs P7 system call performance References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 30 Ingo Molnar wrote: > 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. > I don't think you can modify the GDT segments. -hpa P.S. Please don't use my @transmeta.com address for non-Transmeta business. I'm trying very hard to keep my mailboxes semi-organized. - 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/