From owner-freebsd-hackers Wed Jul 18 11:19:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by hub.freebsd.org (Postfix) with ESMTP id D6B3537B401; Wed, 18 Jul 2001 11:19:45 -0700 (PDT) (envelope-from kuehl@lgk.de) Received: from [195.20.224.209] (helo=mrvdom02.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 15MvvD-0004b3-00; Wed, 18 Jul 2001 20:19:43 +0200 Received: from p3ee2e2eb.dip0.t-ipconnect.de ([62.226.226.235] helo=heath.lgk.de) by mrvdom02.schlund.de with esmtp (Exim 2.12 #2) id 15MvvC-0005PJ-00; Wed, 18 Jul 2001 20:19:42 +0200 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B55B71C.CA7704BD@mindspring.com> Date: Wed, 18 Jul 2001 20:25:21 +0200 (CEST) Reply-To: kuehl@lgk.de From: kuehl@lgk.de To: Terry Lambert Subject: Re: x86 unaligned access followup. Cc: hackers@FreeBSD.org, Matthew Jacob , John Baldwin Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 18-Jul-01 Terry Lambert wrote: > John Baldwin wrote: >> It's the AC bit in eflags. > > Note that this will not trap 64 bit unaligned accesses, only 32. And only at pl 3... > Also note that this will play hell with some of the recent > copy avoidance changes made by Bill Paul to the ethernet > drivers, to avoid the expense of copying the packet, with > the knowledge that there would be an increased overhead in > the resulting packet field unaligned accesses when decoding > IP packets... > > A "shakedown cruise" could end up being very rough... you > would effectively need to check an "unaligned access in > kernel is OK" flag in many of these instances, and fall back > to doing the copy when it was false. ...therefore - never mind. Perhaps some app code may break. ;-) Lars To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message