Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Dec 2002 16:30:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Dec 2002 16:30:41 -0500 Received: from to-velocet.redhat.com ([216.138.202.10]:28657 "EHLO touchme.toronto.redhat.com") by vger.kernel.org with ESMTP id ; Tue, 17 Dec 2002 16:30:40 -0500 Date: Tue, 17 Dec 2002 16:38:38 -0500 From: Benjamin LaHaise To: Ulrich Drepper Cc: Alan Cox , Linus Torvalds , Matti Aarnio , Hugh Dickins , Dave Jones , Ingo Molnar , Linux Kernel Mailing List , hpa@transmeta.com Subject: Re: Intel P6 vs P7 system call performance Message-ID: <20021217163838.C10781@redhat.com> References: <3DFF6D4B.3060107@redhat.com> <1040153186.20780.11.camel@irongate.swansea.linux.org.uk> <3DFF7399.40708@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3DFF7399.40708@redhat.com>; from drepper@redhat.com on Tue, Dec 17, 2002 at 10:57:29AM -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1037 Lines: 21 On Tue, Dec 17, 2002 at 10:57:29AM -0800, Ulrich Drepper wrote: > But this is exactly what I expect to happen. If you want to implement > gettimeofday() at user-level you need to modify the page. Some of the > information the kernel has to keep for the thread group can be stored in > this place and eventually be used by some uerlevel code executed by > jumping to 0xfffff000 or whatever the address is. You don't actually need to modify the page, rather the data for the user level gettimeofday needs to be in a shared page and some register (like %tr) must expose the current cpu number to index into the data. Either way, it's an internal implementation detail for the kernel to take care of, with multiple potential solutions. -ben -- "Do you seek knowledge in time travel?" - 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/