| To: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH 15/16] work around for more than 256MB memory support |
| From: | "zhangfx@lemote.com" <zhangfx@lemote.com> |
| Date: | Wed, 4 Apr 2007 14:38:20 +0000 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
drivers/char/mem.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index f5c160c..580ad3e 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -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
--
1.4.4.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 11/16] add Loongson support to /proc/cpuinfo, zhangfx@lemote.com |
|---|---|
| Next by Date: | [PATCH 16/16] alsa sound support for mips, zhangfx@lemote.com |
| Previous by Thread: | [PATCH 11/16] add Loongson support to /proc/cpuinfo, zhangfx@lemote.com |
| Next by Thread: | [PATCH 16/16] alsa sound support for mips, zhangfx@lemote.com |
| Indexes: | [Date] [Thread] [Top] [All Lists] |