Re: A whole lotta WRITE_REGISTER_ULONG
From: Alexander Grigoriev (alegr_at_earthlink.net)
Date: 03/13/04
- Next message: Alexander Grigoriev: "Re: WIN9X_COMPAT_SPINLOCK"
- Previous message: Meier Rudolf: "OutputDebugString"
- In reply to: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Next in thread: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Reply: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 13 Mar 2004 07:31:48 -0800
WRITE_REGISTER_ULONG _may_ be a macro in some configurations. And NOT in
other.
And without 'volatile' qualifier, the compiler might optimize the whole
write loop down to the last write, which would not work for OP.
"Tim Roberts" <timr@probo.com> wrote in message
news:jm6550lhddfpeedpegg872ub9jemop5j1e@4ax.com...
> thojens@gmx.de (Thorsten Jens) wrote:
> >
>
> Where did you read that? It is bogus advice. WRITE_REGISTER_ULONG is a
> macro that expands to exactly the code you have there.
>
> OK, it's not EXACTLY the same. The macro casts the address to a (volatile
> PULONG), but the "volatile" doesn't change anything in this circumstance.
> Your code will compile to EXACTLY the same assembler code as if you had
> used the macro.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc
- Next message: Alexander Grigoriev: "Re: WIN9X_COMPAT_SPINLOCK"
- Previous message: Meier Rudolf: "OutputDebugString"
- In reply to: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Next in thread: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Reply: Tim Roberts: "Re: A whole lotta WRITE_REGISTER_ULONG"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|