Subject: bus_space_read/write_multi_2 odd behaviour
To: tech-kern@NetBSD.ORG <tech-kern@NetBSD.ORG>
From: Dante Profeta <dante@mclink.it>
List: tech-kern
Date: 07/12/1998 21:02:00
Hi folks,

I've got some odd behaviours with bus_space_read/write_multi_2 functions
under i386.

Take a look at this two fragments of code:

1)
	bus_space_write_multi_2(iot, ioh, ASC_IOP_RAM_DATA, s_buffer, words);

2)
	for (i = 0; i < words; i++, s_buffer++)
		bus_space_write_2(iot, ioh, ASC_IOP_RAM_DATA, *s_buffer);

These should be equivalent, but most of time the first one fails to
write the correct data.
I've got the same wrong results using the bus_space_read_multi_2
function.

Have you got any idea?

Thanks

--
  Dante_