linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Patch for include/asm-ppc/highmem.h
@ 2003-06-20 23:55 Mark A. Greer
  0 siblings, 0 replies; only message in thread
From: Mark A. Greer @ 2003-06-20 23:55 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

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

[-- Attachment #2: highmem.patch --]
[-- Type: text/plain, Size: 506 bytes --]

===== 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-20 23:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20 23:55 Patch for include/asm-ppc/highmem.h Mark A. Greer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).