From owner-freebsd-alpha Wed Aug 18 7: 0: 2 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 8E0B714CFB for ; Wed, 18 Aug 1999 06:59:58 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id PAA52020; Wed, 18 Aug 1999 15:09:33 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 18 Aug 1999 15:09:33 +0100 (BST) From: Doug Rabson To: Peter Wemm Cc: alpha@freebsd.org Subject: Re: cpu_switch() help needed.. In-Reply-To: <19990818130331.54C6A1C1F@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 18 Aug 1999, Peter Wemm wrote: > I need some help to hook some routines into alpha/swtch.s, but I don't know > alpha assembler well enough. I can guess and try and figure it out myself, > but I'd rather enlist the help of an expert. :-) I can supply > corresponding patches for the x86 (basically delete large chunks of code > and replace it with calls to a C routine), but I don't know the calling > conventions and implications of side effects for the Alpha. On the x86, the > side effects of the registers clobbered by the C code were harmless. > > I believe Doug is still in transit to/from SIGGRAPH or something. Can any > of the other lurkers help? (Andrew? :-). Which bit are you trying to hook out? The calling convention is pretty simple - just use the CALL(fn) macro which does everything for you. The C code will tend to clobber everything except s0-s6 and the return value is in v0. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message