From owner-freebsd-current Wed Aug 15 18:51:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id F0FF037B413 for ; Wed, 15 Aug 2001 18:51:41 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA14800 for ; Wed, 15 Aug 2001 18:42:08 -0700 (PDT) Date: Wed, 15 Aug 2001 18:42:07 -0700 (PDT) From: Julian Elischer To: current@freebsd.org Subject: perils of porting code.. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG the midway driver.. has the folowing comment. 855: #ifdef NBURST 856: /* be careful. kernel stack is only 8K */ 857: u_int8_t buffer[BOUNDARY * 2 + 64 * (NBURSTS + .... well, that may have been true on NetBSD where this came from, but not in FreeBSD.. Sure Upages is 2 but the U-area in it takes up 4.5 KB leaving 3.5KB for the stack.. No matter, this is still probably not a good idea, even with 8K. (they are allocating 2.3KB here.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message