mmu.h 558 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __ARCH_UM_MMU_H
  6. #define __ARCH_UM_MMU_H
  7. #include <mm_id.h>
  8. #include <asm/mm_context.h>
  9. typedef struct mm_context {
  10. struct mm_id id;
  11. struct uml_arch_mm_context arch;
  12. struct page *stub_pages[2];
  13. } mm_context_t;
  14. extern void __switch_mm(struct mm_id * mm_idp);
  15. /* Avoid tangled inclusion with asm/ldt.h */
  16. extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
  17. extern void free_ldt(struct mm_context *mm);
  18. #endif