Re: test10-pre4

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Thu Oct 19 2000 - 06:42:23 EST


On Wed, Oct 18, 2000 at 03:46:45PM -0700, Linus Torvalds wrote:
> Ok, more of the "lots of small fixes" patches. The most notable of which
> is probably the atomic PTE patches by Ben LaHaise, which fixes the
> long-standing lost dirty bits problem under SMP, and also cleans up some
> of the ia32 PAE mode issues.
>
The pte_same() macro is defined only for i386.
Here is #define for alpha, but it should be suitable for
all other ports too.

Ivan.

--- 2.4.0t10p4/include/asm-alpha/pgtable.h Thu Oct 19 12:35:08 2000
+++ linux/include/asm-alpha/pgtable.h Thu Oct 19 13:03:50 2000
@@ -211,6 +211,7 @@
 { pgd_val(*pgdp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); }
 
 #define pte_page(x) (mem_map+(unsigned long)((pte_val(x) >> 32)))
+#define pte_same(x, y) (pte_val(x) == pte_val(y))
 
 extern inline unsigned long pmd_page(pmd_t pmd)
 { return PAGE_OFFSET + ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)); }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:14 EST