From owner-cvs-all@FreeBSD.ORG Sat Mar 20 18:25:37 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 3910216A4CF; Sat, 20 Mar 2004 18:25:37 -0800 (PST) In-Reply-To: from Julian Elischer at "Mar 20, 2004 05:02:15 pm" To: julian@elischer.org (Julian Elischer) Date: Sat, 20 Mar 2004 18:25:37 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040321022537.3910216A4CF@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/ndis kern_ndis.c ndis_var.h ntoskrnl_var.h subr_ndis.c subr_ntoskrnl.c src/sys/dev/if_ndi X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 02:25:37 -0000 > > > > options KSTACK_PAGES=8 > > > > Actually kernel threads can dynamically change to a different kstack > and allocate themselves a bigger one.. I forget where it is used but I > remember that htere is codde in exit to clean up teh extra kernel stack > if it is being used.. > > Is this running as a kernel thread or on a user's kernel thread stack? > I've been experimenting with that, but it's not helping. :( I think the problem is occuring in the interrupt handler routine, which is running in the "ndis swi" thread. Things seem to go fine, right up until an interrupt fires that causes it to associate to my ad-hoc net, then I get a double fault. In my experiments, it seems to blow up when it hits the nanotime() call in ndis_time(). I tried to set a breakpoint on ndis_time() and was able to stop on it once, but then trying to do a "trace" from the kernel debugger yielded another fault. I an only assume this means that by the time we hit this function, the stack is already hosed. It's possible I've misdiagnosed this problem and there's something else afoot. All I know is that KSTACK_PAGES=8 makes it work on my test box. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wpaul@windriver.com | Wind River Systems ============================================================================= you're just BEGGING to face the moose =============================================================================