On Thu, 2010-12-30 at 19:48 +0000, Konrad Rzeszutek Wilk wrote:
I don't think the inner-if buys us anything here and the whole thing is
equivalent to:
if (mfn != INVALID_P2M_ENTRY)
mfn &= ~(FOREIGN_FRAME_BIT|IDENTITY_FRAME_BIT);
Not sure if the FOREIGN_FRAME_BIT|IDENTITY_FRAME_BIT construct gets
enough use to be worthy of a #define FRAME_TYPE_MASK etc.
It's probably worth defining IDENTITY_FRAME(m) in the pattern of
FOREIGN_FRAME(m).
Ian.
--