Date: Thu, 15 Jul 1999 01:30:35 +0800 From: Peter Wemm <peter@netplex.com.au> To: Dmitrij Tejblum <dt@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_init.c Message-ID: <19990714173035.A5E5281@overcee.netplex.com.au> In-Reply-To: Your message of "Mon, 12 Jul 1999 09:09:32 MST." <199907121609.JAA26044@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Dmitrij Tejblum wrote:
> dt 1999/07/12 09:09:31 PDT
>
> Modified files:
> lib/libc_r/uthread pthread_private.h uthread_init.c
> Log:
> Use USRSTACK (defined in <machine/vmparam.h>) to get top of the initial sta
ck.
Umm, this is not a good way to do it as it is dependent on kernel size
adjustments. It would be far better to use the sysctl kern.usrstack
instead, and perhaps falling back to the predefined USRSTACK if for some
reason the variable isn't available.
It's even got a numeric OID (KERN_USRSTACK) so it doesn't incur the
expense of doing a name translation.
Cheers,
-Peter
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990714173035.A5E5281>
