Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2002 09:42:04 -0800 (PST)
From:      John Baldwin <jhb@freebsd.org>
To:        Dan Eischen <eischen@vigrid.com>
Cc:        arch@freebsd.org, Doug Rabson <dfr@nlsystems.com>
Subject:   Re: Getcontext resolution?
Message-ID:  <XFMail.020108094204.jhb@FreeBSD.org>
In-Reply-To: <3C3AE665.4D6B72A6@vigrid.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020108094204.jhb>