From owner-cvs-all Sun Nov 17 10:59:48 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9465E37B401; Sun, 17 Nov 2002 10:59:47 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id E548143E77; Sun, 17 Nov 2002 10:59:46 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id gAHIxk0N042418; Sun, 17 Nov 2002 10:59:46 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id gAHIxkih000687; Sun, 17 Nov 2002 10:59:46 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.6/8.12.6/Submit) id gAHIxkmj000686; Sun, 17 Nov 2002 10:59:46 -0800 (PST) (envelope-from marcel) Date: Sun, 17 Nov 2002 10:59:46 -0800 From: Marcel Moolenaar To: Daniel Eischen Cc: Doug Rabson , Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/arch/ia64 _atomic_lock.S Message-ID: <20021117185946.GC603@athlon.pn.xcllnt.net> References: <200211171401.02376.dfr@nlsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 17, 2002 at 10:56:43AM -0500, Daniel Eischen wrote: > > Just curious, how do you intend to work this into things > for which the specs allow one stack? pthread_attr_setstackaddr, > pthread_attr_setstacksize, makecontext, etc. You always have a base and a size. The register stack can be put at the base, because it grows upwards and the "normal" stack can be put at (base+size), because it grows backwards. Other nice tricks for when you have guard pages is that both start at (base+size/2) and they grow away from each other, towards guard pages. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message