Subject: Patch for include/asm-ppc/highmem.h

From: "Mark A. Greer" <[email-masked]>
Date: Fri, 20 Jun 2003 16:55:38 -0700

This patch changes the mask value to what I believe it was intended to
be based on the bk comments for that file.  If this is not the proper
fix, we need to figure it out b/c it doesn't build when CONFIG_HIGHMEM
is on (PAGE_ADDRESS is not defined).

Mark
===== include/asm-ppc/highmem.h 1.18 vs edited =====
--- 1.18/include/asm-ppc/highmem.h	Sat May 10 01:06:50 2003
+++ edited/include/asm-ppc/highmem.h	Fri Jun 20 16:50:26 2003
@@ -110,7 +110,7 @@
 static inline void kunmap_atomic(void *kvaddr, enum km_type type)
 {
 #if HIGHMEM_DEBUG
-	unsigned long vaddr = (unsigned long) kvaddr & PAGE_ADDRESS;
+	unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
 	unsigned int idx = type + KM_TYPE_NR*smp_processor_id();

 	if (vaddr < KMAP_FIX_BEGIN) // FIXME