lib/ftl: fix PAGE_SIZE for AArch64

Not only 4KB page size is supported on AArch64. The most common is 4KB
and 64KB. 16KB is supported too. We can get it by "getconf PAGESIZE".

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454447 (master)

(cherry picked from commit 5327875c74)
Change-Id: I6f09741372d35e868228528d976fe3b5a65ff96c
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457229
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Richael Zhuang 2019-05-14 18:26:55 +08:00 committed by Darek Stojaczyk
parent d8a948ca1d
commit 1fa9d7e14e

View File

@ -83,6 +83,7 @@ COMMON_CFLAGS += -march=native
endif
ifeq ($(TARGET_MACHINE),aarch64)
COMMON_CFLAGS += -march=armv8-a+crc
COMMON_CFLAGS += -DPAGE_SIZE=$(shell getconf PAGESIZE)
endif
ifeq ($(CONFIG_WERROR), y)