Re: [PATCH 1/6] x86: fix NX bit handling in change_page_attr

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Huang, Ying <ying.huang@...>, Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>, Thomas Gleixner <tglx@...>, Andi Kleen <ak@...>, <linux-kernel@...>
Date: Friday, January 25, 2008 - 4:05 pm

Ingo Molnar wrote:

The pte_* accessors are really just helpers, so they're not mandatory.  
Something like this would be fine:

	refprot = __pgprot(pgprot_val(refprot) & ~_PAGE_NX);

This is identical to the lvalue form, but avoids using it as an lvalue.

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/6] x86: fix NX bit handling in change_page_attr, Jeremy Fitzhardinge, (Fri Jan 25, 3:32 am)
Re: [PATCH 1/6] x86: fix NX bit handling in change_page_attr, Jeremy Fitzhardinge, (Fri Jan 25, 4:05 pm)