From owner-freebsd-hackers Fri Nov 1 13:43:42 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA23639 for hackers-outgoing; Fri, 1 Nov 1996 13:43:42 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA23606 for ; Fri, 1 Nov 1996 13:43:34 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA28514; Fri, 1 Nov 1996 14:35:35 -0700 From: Terry Lambert Message-Id: <199611012135.OAA28514@phaeton.artisoft.com> Subject: Re: VM answer requested To: matt@lkg.dec.com (Matt Thomas) Date: Fri, 1 Nov 1996 14:35:35 -0700 (MST) Cc: terry@lambert.org, msmith@atrad.adelaide.edu.au, freebsd-hackers@freefall.freebsd.org In-Reply-To: <199611011656.QAA14425@whydos.lkg.dec.com> from "Matt Thomas" at Nov 1, 96 04:56:00 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > What about the aligned access bit in recent Intel processors? > > > > I'd like to be able to turn on the bit so that I get a fault (and it > > kills the offending process) when an unaligned access occurs. > > > > I'd also like to get kernel faults if this happens in the kernel > > (it is my opinion that it should never be allowed to happen in the > > kernel, and there should be a sanitization pass to insure it). > > Don't use the de driver then. Because of a misfeature in the 21x4x > chips, the Ethernet payload (the stuff after the header) is not longword > aligned). Having the processor deal with unaligned data is much faster > than copying the data so that it is aligned. A "relaxed but observant" mode would handle this in the fault handler by falling back to unaligned access -- after the fault. I expect the kernel would run "relaxed but observant" and the user mode code would be "anal for debugging, relaxed-but-observant for normal usage". How will this driver work with an Alpha or MIPs processor, BTW? It's a DEC card, you'd expect it to work with both... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.