From owner-freebsd-arch@FreeBSD.ORG Sun Nov 11 20:43:52 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 8588D16A418 for ; Sun, 11 Nov 2007 20:43:52 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0D713C4AA for ; Sun, 11 Nov 2007 20:43:51 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.7.0 Received: from [212.86.226.226] (account mav@alkar.net HELO [192.168.3.2]) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 44547795; Sun, 11 Nov 2007 22:43:33 +0200 Message-ID: <4737696A.7050605@FreeBSD.org> Date: Sun, 11 Nov 2007 22:43:22 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Marcel Moolenaar 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> <0414590D-0C2A-4EBD-9617-7AC193ABD1E8@mac.com> In-Reply-To: <0414590D-0C2A-4EBD-9617-7AC193ABD1E8@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , Julian Elischer , 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 20:43:52 -0000 Marcel Moolenaar wrote: > 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. Hmm, interesting. And which one is pointed by td_kstack there? Or they are using same segment but from opposite sides? > The code suggested will not be meaningful on ia64. Why? If variable stack growing down and it's segment is pointed by td_kstack then where is the problem? Or you mean that system will die earlier when those two stacks in same segment will reach each other? -- Alexander Motin