From: Fuxin Zhang <zhangfx@xxxxxxxxxx> Signed-off-by: Fuxin Zhang <zhangfx@xxxxxxxxxx> --- 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