From owner-freebsd-arch Tue Jan 8 16:40:36 2002 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 3C98337B402; Tue, 8 Jan 2002 16:40:32 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.12.1/8.12.1) id g090dPkZ028347; Tue, 8 Jan 2002 19:39:25 -0500 (EST) Date: Tue, 8 Jan 2002 19:39:23 -0500 (EST) From: Daniel Eischen To: John Baldwin Cc: Dan Eischen , arch@freebsd.org, Doug Rabson Subject: Re: Getcontext resolution? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 8 Jan 2002, John Baldwin wrote: > On 08-Jan-02 Dan Eischen wrote: > > Doug Rabson wrote: > >> > >> On Mon, 7 Jan 2002, Dan Eischen wrote: > >> > >> > I'm incorporating Doug Rabson's comments. makecontext will allow > >> > passing pointers as arguments to the start function, and the argument > >> > count will not be passed as a parameter: > >> > >> I've been thinking about this and I think that possibly 'intptr_t' would > >> be a better type for the arguments than 'uintptr_t' since that is a signed > >> type. > > > > OK, will change it. This is really only applicable to alpha and > > other 64-bit archs, though. I've left i386 as int's since we know > > it's always going to be 32-bits, right? > > intptr_t is 32-bits on i386. It's easier to just use the same type everywhere. > Also, you could consider the new C99 type intmax_t. intmax_t is 64 bits on i386 so it won't work. I'm using intptr_t for both i386 and alpha now. Trying to use the correct type seems all well and good, but we are still somewhat limited to how the registers are defined in the machine context anyways (int for i386, and [unsigned] long for alpha). -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message