Fix a bug of ASM in restore.c; ASM does not work when the cache size is beyond 2GB.