From owner-freebsd-alpha Mon Nov 23 18:14:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA19786 for freebsd-alpha-outgoing; Mon, 23 Nov 1998 18:14:55 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA19780 for ; Mon, 23 Nov 1998 18:14:53 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id SAA01690; Mon, 23 Nov 1998 18:13:04 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811240213.SAA01690@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: shimon@simon-shapiro.org cc: freebsd-alpha@FreeBSD.ORG Subject: Re: UnAligned Access, but why? In-reply-to: Your message of "Mon, 23 Nov 1998 16:38:09 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 23 Nov 1998 18:13:04 -0800 From: Mike Smith Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Am trying to get the DPT driver running on alpha. > Narrowed down the problem to this: > > In sys/alpha/include/bus.h there is a series of static inline functions to > do the equivalient of inb, inw, and inl, as well as outb, outw, outl. they > are called bus_space_{read,write}_[124]. > > The bus_space_read_[14] are causing unaligned access panics. These panics > can be eliminated by casting explicitly: Don't do this. Align the objects you're trying to transfer instead. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message