Date: Mon, 23 Nov 1998 18:13:04 -0800 From: Mike Smith <mike@smith.net.au> To: shimon@simon-shapiro.org Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: UnAligned Access, but why? Message-ID: <199811240213.SAA01690@dingo.cdrom.com> In-Reply-To: Your message of "Mon, 23 Nov 1998 16:38:09 EST." <XFMail.981123163809.shimon@simon-shapiro.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811240213.SAA01690>