page-def.h 441 B

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