bitkeeper revision 1.1159.1.212 (416485874bmgh8xNVGGY3ZNzyzd9QQ)

Make pmd_present test correct in writable pagetables mode.
This commit is contained in:
cl349@freefall.cl.cam.ac.uk committed 2004-10-06 23:53:43 +00:00
1 parent 74de957247
commit 3cb28ec77d
1 file changed
+3 -1
@@ -211,7 +211,9 @@ extern unsigned long pg0[];
#define pte_clear(xp) do { set_pte(xp, __pte(0)); } while (0)
#define pmd_none(x) (!pmd_val(x))
#define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
/* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t.
can temporarily clear it. */
#define pmd_present(x) (pmd_val(x))
/* pmd_clear below */
#define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER & ~_PAGE_PRESENT)) != (_KERNPG_TABLE & ~_PAGE_PRESENT))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.