Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Dec 2002 12:09:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Dec 2002 12:09:28 -0500 Received: from chaos.analogic.com ([204.178.40.224]:52362 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Tue, 17 Dec 2002 12:09:27 -0500 Date: Tue, 17 Dec 2002 12:19:31 -0500 (EST) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: Manfred Spraul cc: Ulrich Drepper , linux-kernel@vger.kernel.org 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: 1092 Lines: 49 On Tue, 17 Dec 2002, Richard B. Johnson wrote: > On Tue, 17 Dec 2002, Manfred Spraul wrote: > > > > > > > > > > pushl %ebp > > > movl $0xfffff000, %ebp > > > call *%ebp > > > popl %ebp > > > > > > > > > > You could avoid clobbering a register with something like > > > > pushl $0xfffff000 > > call *(%esp) > > addl %esp,4 > > > > This is a near 'call'. > > pushl $0xfffff000 > ret > I hate answering my own stuff......... This gets back and modifies no registers. Actually I should be: pushl $next_address # Where to go when the call returns pushl $0xfffff000 # Put this on the stack ret # 'Return' to it (jump) next_address: # Were we end up after Cheers, Dick Johnson Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). Why is the government concerned about the lunatic fringe? Think about it. - 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/