um_mmu.h 628 B

12345678910111213141516171819202122232425262728
  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 "uml-config.h"
  8. #include "mm_id.h"
  9. #include "asm/ldt.h"
  10. typedef struct mm_context {
  11. struct mm_id id;
  12. unsigned long last_page_table;
  13. #ifdef CONFIG_3_LEVEL_PGTABLES
  14. unsigned long last_pmd;
  15. #endif
  16. struct uml_ldt ldt;
  17. } mm_context_t;
  18. extern void __switch_mm(struct mm_id * mm_idp);
  19. /* Avoid tangled inclusion with asm/ldt.h */
  20. extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
  21. extern void free_ldt(struct mm_context *mm);
  22. #endif