| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 15/15] work around for more than 256MB memory support |
| From: | tiansm@lemote.com |
| Date: | Wed, 6 Jun 2007 14:52:52 +0800 |
| Cc: | Fuxin Zhang <zhangfx@lemote.com> |
| In-reply-to: | <11811127722019-git-send-email-tiansm@lemote.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <11811127722019-git-send-email-tiansm@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Fuxin Zhang <zhangfx@lemote.com>
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 cc9a9d0..a19b46a 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -82,8 +82,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.5.2.1
|
| Previous by Date: | [PATCH 09/15] add serial port definition for lemote fulong, tiansm |
|---|---|
| Next by Date: | [PATCH 01/15] new files for lemote fulong mini-PC support, tiansm |
| Previous by Thread: | Re: [PATCH 09/15] add serial port definition for lemote fulong, Ralf Baechle |
| Next by Thread: | Re: [PATCH 15/15] work around for more than 256MB memory support, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |