|
@@ -13,6 +13,10 @@ typedef struct {
|
|
|
|
|
|
#ifdef CONFIG_CPU_HAS_ASID
|
|
#ifdef CONFIG_CPU_HAS_ASID
|
|
#define ASID(mm) ((mm)->context.id & 255)
|
|
#define ASID(mm) ((mm)->context.id & 255)
|
|
|
|
+
|
|
|
|
+/* init_mm.context.id_lock should be initialized. */
|
|
|
|
+#define INIT_MM_CONTEXT(name) \
|
|
|
|
+ .context.id_lock = __SPIN_LOCK_UNLOCKED(name.context.id_lock),
|
|
#else
|
|
#else
|
|
#define ASID(mm) (0)
|
|
#define ASID(mm) (0)
|
|
#endif
|
|
#endif
|