patch-2.4.13 linux/include/asm-sparc/highmem.h
Next file: linux/include/asm-sparc/pci.h
Previous file: linux/include/asm-sh/uaccess.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Oct 17 14:16:39 2001
- Orig file:
v2.4.12/linux/include/asm-sparc/highmem.h
- Orig date:
Sun Feb 18 19:49:55 2001
diff -u --recursive --new-file v2.4.12/linux/include/asm-sparc/highmem.h linux/include/asm-sparc/highmem.h
@@ -111,14 +111,11 @@
static inline void kunmap_atomic(void *kvaddr, enum km_type type)
{
-#if HIGHMEM_DEBUG
unsigned long vaddr = (unsigned long) kvaddr;
unsigned long idx = type + KM_TYPE_NR*smp_processor_id();
-#if 0
- if (vaddr < FIXADDR_START) // FIXME
+ if (vaddr < FIX_KMAP_BEGIN) // FIXME
return;
-#endif
if (vaddr != FIX_KMAP_BEGIN + idx * PAGE_SIZE)
BUG();
@@ -130,6 +127,7 @@
flush_cache_all();
#endif
+#ifdef HIGHMEM_DEBUG
/*
* force other mappings to Oops if they'll try to access
* this pte without first remap it
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)