Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_MMU_H
0003 #define __ASM_MMU_H
0004 
0005 #include <linux/atomic.h>
0006 #include <linux/spinlock.h>
0007 #include <linux/wait.h>
0008 
0009 typedef struct {
0010     union {
0011         u64 asid[NR_CPUS];
0012         atomic64_t mmid;
0013     };
0014 
0015     void *vdso;
0016 
0017     /* lock to be held whilst modifying fp_bd_emupage_allocmap */
0018     spinlock_t bd_emupage_lock;
0019     /* bitmap tracking allocation of fp_bd_emupage */
0020     unsigned long *bd_emupage_allocmap;
0021     /* wait queue for threads requiring an emuframe */
0022     wait_queue_head_t bd_emupage_queue;
0023 } mm_context_t;
0024 
0025 #endif /* __ASM_MMU_H */