Date: Thu, 16 Aug 2001 20:26:38 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Julian Elischer <julian@elischer.org> Cc: <current@FreeBSD.ORG> Subject: Re: perils of porting code.. Message-ID: <20010816195448.C27683-100000@besplex.bde.org> In-Reply-To: <Pine.BSF.4.21.0108151837370.14235-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010816195448.C27683-100000>