NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/50038: udl (DisplayLink GX-DVI_U2B) alignment fault on earmv6hf NETWALKER
The following reply was made to PR kern/50038; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: MOCHIDA Shuji <mochid%netside.co.jp@localhost>
Cc: skrll%netbsd.org@localhost, gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/50038: udl (DisplayLink GX-DVI_U2B) alignment fault on earmv6hf NETWALKER
Date: Thu, 10 Nov 2016 18:54:57 +0100
On Thu, Nov 10, 2016 at 11:46:41PM +0900, MOCHIDA Shuji wrote:
> Replace be32enc(), be16enc() to use !(GCC >= 2.95) version, then the device
> works good.
> Something wrong with __builtin_memcpy()? or compiler optimization?
I don't see what is wrong with the source - sc->sc_cmd_buf is a uint8_t*
passed directly as void* to the inline function, no bogus casts involved,
so the compiler can not assume proper alignment.
Maybe I am missing something, or it is a compiler bug.
Martin
Home |
Main Index |
Thread Index |
Old Index