> -----Original Message----- > From: kernelnewbies-bounces@xxxxxxxxxxxxxxxxx [mailto:kernelnewbies- > bounces@xxxxxxxxxxxxxxxxx] On Behalf Of StephanT > Sent: Tuesday, October 18, 2011 10:23 AM > To: kernelnewbies > Subject: Re: How can I test if a physical address is already mapped or not. > > > >>When you say an access to physical address, how are you managing to > >>access the physical address directly? > > Like this: > > unsigned long * const pReg = (unsigned long*) 0XC0000000 ; > > printk( KERN_INFO"** read (%p) %08lX.\n", pReg, *pReg) ; On any virtual memory processor I am aware of, the above will cause pReg to contain a virtual address, not a physical address. Jeff Haran _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies