lkml.org 
[lkml]   [1999]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Accessing shared physical memory
Date
From
> > > 	ptr = (short *) ioremap(0xd0000, 0x10000);
> > > for(;;)
> > > *ptr = 0xdead;
> > >
> > > Does not ever produce address 0xD... anything on the ISA bus. Therefore,
> >
> > Well I would guess the compiler optimised the above to
> >
> > while(1);
>
> if the ptr is/was declared volatile (it's not), surely it won't do
> this?

Then the cast would be to volatile short * ...


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.176 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site