Thread (14 messages) flat view 14 messages, 5 authors, 2004-04-01

Re: Proposed changes to io.h

From: Eugene Surovegin <hidden>
Date: 2004-03-31 16:44:23

On Wed, Mar 31, 2004 at 10:44:25AM -0500, John Whitney wrote:
2. I'd like to add 64-bit __raw_readll and __raw_writell routines to
io.h, done using floating-point registers.  Currently, modules such as
MTD (when writing to 64-bit buses) perform two 32-bit, non-atomic
writes, which can cause problems.  Using a floating-point register to
guarantee a 64-bit write is ugly, but it works.  Code for these inlined
routines is as follows:
[snip]

I wonder will it work on 4xx CPUs which don't have floating point unit?

Eugene.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help