mmu.h 550 B

1234567891011121314151617181920212223
  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. u64 asid[NR_CPUS];
  9. void *vdso;
  10. atomic_t fp_mode_switching;
  11. /* lock to be held whilst modifying fp_bd_emupage_allocmap */
  12. spinlock_t bd_emupage_lock;
  13. /* bitmap tracking allocation of fp_bd_emupage */
  14. unsigned long *bd_emupage_allocmap;
  15. /* wait queue for threads requiring an emuframe */
  16. wait_queue_head_t bd_emupage_queue;
  17. } mm_context_t;
  18. #endif /* __ASM_MMU_H */