From owner-freebsd-current Thu Aug 16 3:26:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 4913137B410 for ; Thu, 16 Aug 2001 03:26:46 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA22482; Thu, 16 Aug 2001 20:26:39 +1000 Date: Thu, 16 Aug 2001 20:26:38 +1000 (EST) From: Bruce Evans X-X-Sender: To: Julian Elischer Cc: Subject: Re: perils of porting code.. In-Reply-To: Message-ID: <20010816195448.C27683-100000@besplex.bde.org> 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 On Wed, 15 Aug 2001, Julian Elischer wrote: > 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.. This is for i386's. I think it's actually 3.5KB for the effective user area and 4.5KB for the stack. The user area has size 4160 here and there's a struct kinfo_proc at the end of it which is not used in active user areas. When the above code was imported, the effective user area was much smaller. It was bloated more than 2K by supporting 128 signals instead of 32. Some signal data scales with _SIG_MAXSIG^2. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message