lkml.org 
[lkml]   [2009]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Page protection flags in linux on an x86 platform
Date
On Thursday 26 February 2009, Vinay Venkataraghavan wrote:
> I am trying to port some PPC code to x86 based linux. My question is that I am need to create some page mappings using remap_pfn_range. In the code for the PPC,
> the protection flags being specified are:
>
> __pgprot(_PAGE_NO_CACHE | _PAGE_GUARDED);

To make your code portable, use pgprot_noncached(), which works on all
architectures.

Arnd <><


\
 
 \ /
  Last update: 2009-02-26 20:57    [W:0.035 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site