From owner-freebsd-arch@FreeBSD.ORG Sun Nov 11 19:49:33 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE23C16A419 for ; Sun, 11 Nov 2007 19:49:33 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.79]) by mx1.freebsd.org (Postfix) with ESMTP id 6BAAB13C480 for ; Sun, 11 Nov 2007 19:49:33 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp008-s [10.150.69.71]) by smtpoutm.mac.com (Xserve/smtpout016/MantshX 4.0) with ESMTP id lABJnAAf015910; Sun, 11 Nov 2007 11:49:11 -0800 (PST) Received: from [192.168.1.101] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp008/MantshX 4.0) with ESMTP id lABJn8ri006148 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 11 Nov 2007 11:49:09 -0800 (PST) Message-Id: <0414590D-0C2A-4EBD-9617-7AC193ABD1E8@mac.com> From: Marcel Moolenaar To: Julian Elischer In-Reply-To: <47373C5E.2080800@elischer.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Sun, 11 Nov 2007 11:49:08 -0800 References: <1191187393.00807485.1191175801@10.7.7.3> <1191189248.00807488.1191177603@10.7.7.3> <4736D8AF.7010209@FreeBSD.org> <20071111163815.GJ37471@deviant.kiev.zoral.com.ua> <47373C5E.2080800@elischer.org> X-Mailer: Apple Mail (2.912) Cc: Kostik Belousov , Alexander Motin , freebsd-arch@freebsd.org Subject: Re: Kernel thread stack usage X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2007 19:49:33 -0000 On Nov 11, 2007, at 9:31 AM, Julian Elischer wrote: > Also, and others may want to pipe in on this, it might go in > machine dependent code because it is *theoretically* we could port > one day to a machine with an upward growing stack. This is not theoretical at all: On ia64 there are 2 stacks. One growing down and one growing up. The downward stack is used for stack-based variables and the pward growing stack is used by the processor for stacked registers. The code suggested will not be meaningful on ia64. -- Marcel Moolenaar xcllnt@mac.com