patch-2.4.22 linux-2.4.22/include/asm-ppc/highmem.h

Next file: linux-2.4.22/include/asm-ppc/ibm4xx.h
Previous file: linux-2.4.22/include/asm-ppc/hardirq.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-ppc/highmem.h linux-2.4.22/include/asm-ppc/highmem.h
@@ -10,7 +10,7 @@
  *		      Gerhard.Wichert@pdb.siemens.de
  *
  *
- * Redesigned the x86 32-bit VM architecture to deal with 
+ * Redesigned the x86 32-bit VM architecture to deal with
  * up to 16 Terrabyte physical memory. With current x86 CPUs
  * we now support up to 64 Gigabytes physical RAM.
  *
@@ -102,7 +102,7 @@
 static inline void kunmap_atomic(void *kvaddr, enum km_type type)
 {
 #if HIGHMEM_DEBUG
-	unsigned long vaddr = (unsigned long) kvaddr;
+	unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
 	unsigned int idx = type + KM_TYPE_NR*smp_processor_id();
 
 	if (vaddr < KMAP_FIX_BEGIN) // FIXME

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)