page_32.h 759 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _I386_PAGE_H
  2. #define _I386_PAGE_H
  3. #ifdef __KERNEL__
  4. #ifndef __ASSEMBLY__
  5. /*
  6. * These are used to make use of C type-checking..
  7. */
  8. extern int nx_enabled;
  9. #endif /* !__ASSEMBLY__ */
  10. #ifndef __ASSEMBLY__
  11. struct vm_area_struct;
  12. /*
  13. * This much address space is reserved for vmalloc() and iomap()
  14. * as well as fixmap mappings.
  15. */
  16. extern unsigned int __VMALLOC_RESERVE;
  17. extern int sysctl_legacy_va_layout;
  18. extern int page_is_ram(unsigned long pagenr);
  19. #endif /* __ASSEMBLY__ */
  20. #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE)
  21. #define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
  22. #include <asm-generic/memory_model.h>
  23. #include <asm-generic/page.h>
  24. #define __HAVE_ARCH_GATE_AREA 1
  25. #endif /* __KERNEL__ */
  26. #endif /* _I386_PAGE_H */