mmu.h 446 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __MMU_H
  2. #define __MMU_H
  3. #if !defined(CONFIG_MMU)
  4. struct mm_rblock_struct {
  5. int size;
  6. int refcount;
  7. void *kblock;
  8. };
  9. struct mm_tblock_struct {
  10. struct mm_rblock_struct *rblock;
  11. struct mm_tblock_struct *next;
  12. };
  13. typedef struct {
  14. struct mm_tblock_struct tblock;
  15. unsigned long end_brk;
  16. } mm_context_t;
  17. #else
  18. /* Default "unsigned long" context */
  19. typedef unsigned long mm_context_t;
  20. #endif /* CONFIG_MMU */
  21. #endif /* __MMH_H */