two virtual address pointing to same physical address

Max Filippov jcmvbkbc at gmail.com
Tue May 20 10:10:31 EDT 2014


Hi,

On Tue, May 20, 2014 at 6:28 AM,  <Valdis.Kletnieks at vt.edu> wrote:
> On Tue, 20 May 2014 00:39:26 -0000, Chan Kim said:
>> But still it's confusing. Can two virtual addresses from the "same process"
>> (in init process, one for nocache pool, the other not) point to the same
>> physical address?
>
> I'm not sure what you're trying to say there.  In general, the hardware
> tags like non-cacheable and write-combining are applied to physical addresses,
> not virtual.

AFAIK most processors with MMU have cache control bits built into page
table entries, effectively controlling caching by virtual address.
E.g. x86 has Write Through and Cache Disabled bits in its PTEs,
ARM PTEs have bits B and C that determine caching and buffering
of the page, etc.

-- 
Thanks.
-- Max



More information about the Kernelnewbies mailing list