bug on READ_REGISTER_BUFFER() 
Author Message
 bug on READ_REGISTER_BUFFER()

VOID
READ_REGISTER_BUFFER_UCHAR(
    PUCHAR  Register,
    PUCHAR  Buffer,
    ULONG   Count
    )
{
    while( Count-- ) {
         *Buffer++ = *(volatile PUCHAR const)Register;
        }
Quote:
}

should be:
VOID
WCJ_READ_REGISTER_BUFFER_UCHAR(
    PUCHAR  Register,
    PUCHAR  Buffer,
    ULONG   Count
    )
{
    while( Count-- ) {
         *Buffer++ = *(volatile PUCHAR const)Register++;
        }
Quote:
}



Mon, 23 May 2005 18:02:08 GMT  
 bug on READ_REGISTER_BUFFER()
No it shouldn't.  It's for reading a group of data from a single register on
a device.

Paul T.


Quote:
> VOID
> READ_REGISTER_BUFFER_UCHAR(
>     PUCHAR  Register,
>     PUCHAR  Buffer,
>     ULONG   Count
>     )
> {
>     while( Count-- ) {
>          *Buffer++ = *(volatile PUCHAR const)Register;
> }
> }
> should be:
> VOID
> WCJ_READ_REGISTER_BUFFER_UCHAR(
>     PUCHAR  Register,
>     PUCHAR  Buffer,
>     ULONG   Count
>     )
> {
>     while( Count-- ) {
>          *Buffer++ = *(volatile PUCHAR const)Register++;
> }
> }



Mon, 23 May 2005 23:47:01 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. BUG BUG BUG watch variable

2. Bugs Bugs Bugs galore

3. BUG BUG BUG / VIRUS VIRUS VIRUS

4. my bug or VC7 bug ?

5. Debugger bug now official MS bug

6. Attention-BUG: random() nonrandomness bug

7. please help: code bug or compiler bug?

8. bug me now / bug me later

9. The nastiest kind of C bug (was: Re: Need help discovering bug source)

10. Bugs in Turbo C's Patch for their First Bugs

11. VC exception bug or bug in my code?

12. Reporting bugs to the net (was Re: Another bug in DEC Fortran)

 

 
Powered by phpBB® Forum Software