From owner-freebsd-alpha Tue Oct 13 15:43:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA12263 for freebsd-alpha-outgoing; Tue, 13 Oct 1998 15:43:39 -0700 (PDT) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA12253 for ; Tue, 13 Oct 1998 15:43:35 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.8.5/8.8.5) with ESMTP id SAA00726; Tue, 13 Oct 1998 18:43:14 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.1/8.9.1) id SAA19000; Tue, 13 Oct 1998 18:42:53 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 13 Oct 1998 18:42:52 -0400 (EDT) To: Chris Csanady Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: kernel traps on boot.. In-Reply-To: <199810132125.QAA04010@friley-185-114.res.iastate.edu> References: <199810132125.QAA04010@friley-185-114.res.iastate.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13859.54457.970518.944699@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Chris Csanady writes: > Regardless, should a alignment trap cause the machine to die? I Yes, as the comment in trap.c says: any unaligned access in the kernel is a bug. > think in NetBSD, they just print it to the console. Has anyone Last I looked, NetBSD panics. Digital UNIX fixes up unaligned accesses in versions prior to 4.0d. > else noticed similar behavior? Yes, although much, much later. Its hitting me at the point of starting init. I'd thought that it was something of mine own doing -- I'm working on OSF/1 binary compatibility & have locally relocated the user stack to get it out of /compat/osf1/sbin/loader's way. I'm glad somebody without my local changes is also having the similar problems. What's at the faulting pc? > Not being able to reliably build a kernel makes it really hard > to get things done. I finally have my GNIC II driver mostly To hack around it, just make a minor change to trap.c.. Here's a hand generated diff, complete with whitespace.. *************** *** 219,225 **** * signalling is appropriate (based on system-wide * and per-process unaligned-access-handling flags). */ ! if (user) { if ((i = unaligned_fixup(a0, a1, a2, p)) == 0) goto out; --- 225,231 ---- * signalling is appropriate (based on system-wide * and per-process unaligned-access-handling flags). */ ! if (1 || user) { if ((i = unaligned_fixup(a0, a1, a2, p)) == 0) goto out; Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message