Subject: Re: Correct use of bus_space functions
To: Martin J. Laubach <email@example.com>
From: Martin Husemann <firstname.lastname@example.org>
Date: 01/08/2003 01:07:24
On Tue, Jan 07, 2003 at 11:56:02PM +0000, Martin J. Laubach wrote:
> A part from that gcc-ismic thing of misusing a macro as a function,
> is the bus_space_barrier() correct or not?
This depends on the context. Doing it the way OpenBSD did is the big
hammer to make it safe everywhere, at the cost of performance.
Sprinkling some bus_space_barriers explicitly in the driver at the right (few)
points is a better way to handle this.