mmu.h 634 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __MMU_H
  2. #define __MMU_H
  3. /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
  4. struct sram_list_struct {
  5. struct sram_list_struct *next;
  6. void *addr;
  7. size_t length;
  8. };
  9. typedef struct {
  10. unsigned long end_brk;
  11. unsigned long stack_start;
  12. /* Points to the location in SDRAM where the L1 stack is normally
  13. saved, or NULL if the stack is always in SDRAM. */
  14. void *l1_stack_save;
  15. struct sram_list_struct *sram_list;
  16. #ifdef CONFIG_BINFMT_ELF_FDPIC
  17. unsigned long exec_fdpic_loadmap;
  18. unsigned long interp_fdpic_loadmap;
  19. #endif
  20. #ifdef CONFIG_MPU
  21. unsigned long *page_rwx_mask;
  22. #endif
  23. } mm_context_t;
  24. #endif