]> err.no Git - linux-2.6/commit
x86: use PTE_MASK rather than ad-hoc mask
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 20 May 2008 07:26:23 +0000 (08:26 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 May 2008 14:51:21 +0000 (07:51 -0700)
commitba23cef5c23cf1e9298032037d919157553d1211
tree60fe1e5a9500165d5fcab710435a4bf3b22666cc
parent86aaf4fd4ea25ddde05772d03b93dbce23c0ead1
x86: use PTE_MASK rather than ad-hoc mask

Use ~PTE_MASK to extract the non-pfn parts of the pte (ie, the pte
flags), rather than constructing an ad-hoc mask.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tested-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-x86/pgtable.h