Commit 5327875c authored by Richael Zhuang's avatar Richael Zhuang Committed by Jim Harris
Browse files

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".

Change-Id: I6f09741372d35e868228528d976fe3b5a65ff96c
Signed-off-by: default avatarRichael Zhuang <richael.zhuang@arm.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454447


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 48a490d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ COMMON_CFLAGS += -march=native
endif
ifeq ($(TARGET_MACHINE),aarch64)
COMMON_CFLAGS += -march=armv8-a+crc
COMMON_CFLAGS += -DPAGE_SIZE=4096
COMMON_CFLAGS += -DPAGE_SIZE=$(shell getconf PAGESIZE)
endif

ifeq ($(CONFIG_WERROR), y)