* Page protection flags in linux on an x86 platform
@ 2009-02-25 21:34 Vinay Venkataraghavan
0 siblings, 0 replies; 3+ messages in thread
From: Vinay Venkataraghavan @ 2009-02-25 21:34 UTC (permalink / raw)
To: linux kernel
Folks,
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);
But it looks like these do not exist when linux is compiled for the x86 architecture.
What are the relevant protection flags to achieve the same for the x86 architecture.
Thanks for any help.
- Vinay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Page protection flags in linux on an x86 platform
2009-02-26 19:36 Vinay Venkataraghavan
@ 2009-02-26 19:54 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2009-02-26 19:54 UTC (permalink / raw)
To: Vinay Venkataraghavan; +Cc: linux kernel
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 <><
^ permalink raw reply [flat|nested] 3+ messages in thread
* Page protection flags in linux on an x86 platform
@ 2009-02-26 19:36 Vinay Venkataraghavan
2009-02-26 19:54 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Vinay Venkataraghavan @ 2009-02-26 19:36 UTC (permalink / raw)
To: linux kernel
Folks,
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);
But it looks like these do not exist when linux is compiled for the x86 architecture.
What are the relevant protection flags to achieve the same for the x86 architecture.
Thanks for your help.
- Vinay
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-26 19:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 21:34 Page protection flags in linux on an x86 platform Vinay Venkataraghavan
2009-02-26 19:36 Vinay Venkataraghavan
2009-02-26 19:54 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome