tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bug in NetBSD compiler or "bus.h" header file crashes my ISDN4BSD



On Wed, Mar 26, 2008 at 10:40 PM, Bang Jun-young 
<junyoung%netbsd.org@localhost> wrote:
> On Mon, Mar 24, 2008 at 8:49 PM, Hans Petter Selasky 
> <hselasky%c2i.net@localhost> wrote:
>  >  // OOOPS! We are looping on %ecx, but only %cl was initialised - why ?
>  >  // Either the "bus_space_" macros on NetBSD 3+4 are wrong or the
>  >  // compiler is wrong!
>
>  Didn't you say
>
>  >  // this instruction is very important
>  >   1e:   0f b6 c9                movzbl %cl,%ecx
>
>  ?

At the second thought, I got what you meant. Please ignore this
brain-damaged question. :-)

Upon reading x86/include/bus.h?rev=1.11 from the netbsd-4 branch,
would it help add
a cast like the following:

void
do_io_000(bus_space_tag_t t, bus_space_handle_t h, void *ptr, uint16_t offset,
uint8_t len)
{
       bus_space_write_multi_1(t, h, offset, ptr, (size_t)len);
}

?


Home | Main Index | Thread Index | Old Index