From owner-freebsd-bugs Wed Oct 17 0:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 135CA37B409 for ; Wed, 17 Oct 2001 00:20:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9H7K5h15663; Wed, 17 Oct 2001 00:20:05 -0700 (PDT) (envelope-from gnats) Date: Wed, 17 Oct 2001 00:20:05 -0700 (PDT) Message-Id: <200110170720.f9H7K5h15663@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Justin Chuang Subject: Re: kern/31310: pthread broken with KVA_PAGES=512 Reply-To: Justin Chuang Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/31310; it has been noted by GNATS. From: Justin Chuang 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