lkml.org 
[lkml]   [2007]   [Jul]   [11]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 11 Jul 2007 11:13:20 +0530
From"Nobin Mathew" <>
SubjectRe: Reading a physical memory location
Which is your platform ?

Which processor?

If you want to use physical address directly, then disable MMU. That
is not possible in linux.

Nobin

On 7/11/07, Manu Abraham <abraham.manu@gmail.com> wrote:
> On 7/10/07, vraghavan3@mail.gatech.edu <vraghavan3@mail.gatech.edu> wrote:
> >> > Thanks for the quick reply. But I was wondering as to why I would have to map
> > the physical address to the virtual address when I know that the string is
> > permanently in the physical memory because its loaded into flash. Is there a way
> > to directly read from the physical memory location? Also, do the functions
> > ioremap() and readl(va) work when called from within a kernel module?
> >
>
> Of course, if you look at almost any of the memory mapped device
> drivers, you will find that ioremap/readl/writel is the backbone of
> your infrastructure.
>
>
> Manu
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-11 07:45    [from the cache]
©2003-2008