sparsemem.h 447 B

123456789101112131415161718
  1. #ifndef _MIPS_SPARSEMEM_H
  2. #define _MIPS_SPARSEMEM_H
  3. #ifdef CONFIG_SPARSEMEM
  4. /*
  5. * SECTION_SIZE_BITS 2^N: how big each section will be
  6. * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
  7. */
  8. #if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
  9. # define SECTION_SIZE_BITS 29
  10. #else
  11. # define SECTION_SIZE_BITS 28
  12. #endif
  13. #define MAX_PHYSMEM_BITS 48
  14. #endif /* CONFIG_SPARSEMEM */
  15. #endif /* _MIPS_SPARSEMEM_H */