Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 18:42:07 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        current@freebsd.org
Subject:   perils of porting code..
Message-ID:  <Pine.BSF.4.21.0108151837370.14235-100000@InterJet.elischer.org>

next in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0108151837370.14235-100000>