sparsemem_32.h 786 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _I386_SPARSEMEM_H
  2. #define _I386_SPARSEMEM_H
  3. #ifdef CONFIG_SPARSEMEM
  4. /*
  5. * generic non-linear memory support:
  6. *
  7. * 1) we will not split memory into more chunks than will fit into the
  8. * flags field of the struct page
  9. */
  10. /*
  11. * SECTION_SIZE_BITS 2^N: how big each section will be
  12. * MAX_PHYSADDR_BITS 2^N: how much physical address space we have
  13. * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
  14. */
  15. #ifdef CONFIG_X86_PAE
  16. #define SECTION_SIZE_BITS 30
  17. #define MAX_PHYSADDR_BITS 36
  18. #define MAX_PHYSMEM_BITS 36
  19. #else
  20. #define SECTION_SIZE_BITS 26
  21. #define MAX_PHYSADDR_BITS 32
  22. #define MAX_PHYSMEM_BITS 32
  23. #endif
  24. /* XXX: FIXME -- wli */
  25. #define kern_addr_valid(kaddr) (0)
  26. #endif /* CONFIG_SPARSEMEM */
  27. #endif /* _I386_SPARSEMEM_H */