lkml.org 
[lkml]   [2015]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: read physical address space
From
Thanks Yalin.

Yeah, got it.. So, it means I can't directly access physical address,
its only the responsibility of MMU to access it. Even if I have a
physical address, I need to convert it to kernel virtual address to
access it to maintain consistency with other general user-mode memory
access operation.

Thanks
Alan.

On Tue, Nov 17, 2015 at 4:28 PM, yalin wang <yalin.wang2010@gmail.com> wrote:
> you should access it like this:
> printk ( *(int*)kmap(pays_to_page(pays_addr)));
>
> pays address must be mapped into virtual address before access it .
>> On Nov 17, 2015, at 23:21, alan hopes <hopes.alan@gmail.com> wrote:
>>
>> phys_addr
>


\
 
 \ /
  Last update: 2015-11-24 17:01    [W:0.095 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site