Date: Wed, 18 Aug 1999 15:09:33 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Peter Wemm <peter@netplex.com.au> Cc: alpha@freebsd.org Subject: Re: cpu_switch() help needed.. Message-ID: <Pine.BSF.4.10.9908181505370.72739-100000@salmon.nlsystems.com> In-Reply-To: <19990818130331.54C6A1C1F@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908181505370.72739-100000>