pgtable-32.h 498 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 Regents of the University of California
  4. */
  5. #ifndef _ASM_RISCV_PGTABLE_32_H
  6. #define _ASM_RISCV_PGTABLE_32_H
  7. #include <asm-generic/pgtable-nopmd.h>
  8. #include <linux/const.h>
  9. /* Size of region mapped by a page global directory */
  10. #define PGDIR_SHIFT 22
  11. #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
  12. #define PGDIR_MASK (~(PGDIR_SIZE - 1))
  13. #define MAX_POSSIBLE_PHYSMEM_BITS 34
  14. #endif /* _ASM_RISCV_PGTABLE_32_H */