Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2001 00:20:05 -0700 (PDT)
From:      Justin Chuang <justin@skysoft.com.tw>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/31310: pthread broken with KVA_PAGES=512
Message-ID:  <200110170720.f9H7K5h15663@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/31310; it has been noted by GNATS.

From: Justin Chuang <justin@skysoft.com.tw>
To: freebsd-gnats-submit@FreeBSD.org
Cc: jasone@canonware.com
Subject: Re: kern/31310: pthread broken with KVA_PAGES=512
Date: Wed, 17 Oct 2001 15:18:25 +0800

 Thanks to Jason.
 
 I solved this problem by adding -DKVA_PAGES=512 in CFLAGS at etc/make.conf
 
 Libc_r include /usr/include/machine/pmap.h to determine 
 USRSTACK, but kernel configuration of KVA_PAGES is defined in
 /usr/src/sys/compile/XXXX/opt_global.h, so libc_r use wrong value of
 USRSTACK.
 
 Once after KVA_PAGES is documented in LINT, a note on this would be helpful
 for those who need pthread and have large memory.
 
 By the way, FreeBSD prior to 4.4-STABLE, including 4.4-RC0, seem to have
 wrong pmap.h that can't produce correct USRSTACK from KVA_PAGES macro. If a
 person want to upgrade to 4.4-STABLE and change KVA_PAGES, maybe he needs to
 make world twice to have correct pmap.h in /usr/include.

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




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