Skip to contentSkip to conversation

work around for more than 256MB memory support

PATCH In review [email protected] 1 participant 1 message Apr 4, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 15/16 work around for more than 256MB memory support

---
 drivers/char/mem.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/char/mem.c +4 -0
index f5c160c..580ad3e 100644
@@ -83,8 +83,12 @@ static inline int uncached_access(struct file *file, unsigned long addr)
 	 */
 	if (file->f_flags & O_SYNC)
 		return 1;
+#if defined(CONFIG_LEMOTE_FULONG) && defined(CONFIG_64BIT)
+	return (addr >= __pa(high_memory)) || ((addr >=0x10000000) && (addr < 0x20000000));
+#else
 	return addr >= __pa(high_memory);
 #endif
+#endif
 }
 
 #ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE
Signature · 1 line
1.4.4.4