mmu.h 713 B

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