work around for more than 256MB memory support
Subsystems (2)
PATCH 15/16 work around for more than 256MB memory support
Signed-off-by Fuxin Zhang <[email protected]>
--- drivers/char/mem.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/char/mem.c +4 -0
@@ -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