mmu.h 555 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_MMU_H
  3. #define __ASM_MMU_H
  4. #include <linux/atomic.h>
  5. #include <linux/spinlock.h>
  6. #include <linux/wait.h>
  7. typedef struct {
  8. union {
  9. u64 asid[NR_CPUS];
  10. atomic64_t mmid;
  11. };
  12. void *vdso;
  13. /* lock to be held whilst modifying fp_bd_emupage_allocmap */
  14. spinlock_t bd_emupage_lock;
  15. /* bitmap tracking allocation of fp_bd_emupage */
  16. unsigned long *bd_emupage_allocmap;
  17. /* wait queue for threads requiring an emuframe */
  18. wait_queue_head_t bd_emupage_queue;
  19. } mm_context_t;
  20. #endif /* __ASM_MMU_H */