1*caab277bSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2b6531456SMark Rutland /* 3b6531456SMark Rutland * Based on arch/arm/include/asm/page.h 4b6531456SMark Rutland * 5b6531456SMark Rutland * Copyright (C) 1995-2003 Russell King 6b6531456SMark Rutland * Copyright (C) 2017 ARM Ltd. 7b6531456SMark Rutland */ 8b6531456SMark Rutland #ifndef __ASM_PAGE_DEF_H 9b6531456SMark Rutland #define __ASM_PAGE_DEF_H 10b6531456SMark Rutland 11b6531456SMark Rutland #include <linux/const.h> 12b6531456SMark Rutland 13b6531456SMark Rutland /* PAGE_SHIFT determines the page size */ 14b6531456SMark Rutland #define PAGE_SHIFT CONFIG_ARM64_PAGE_SHIFT 15b6531456SMark Rutland #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 16b6531456SMark Rutland #define PAGE_MASK (~(PAGE_SIZE-1)) 17b6531456SMark Rutland 18b6531456SMark Rutland #endif /* __ASM_PAGE_DEF_H */ 19