2005-04-17 06:20:36 +08:00
|
|
|
#ifndef __ARM_MMU_H
|
|
|
|
#define __ARM_MMU_H
|
|
|
|
|
2006-06-21 03:46:52 +08:00
|
|
|
#ifdef CONFIG_MMU
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
typedef struct {
|
2007-05-17 17:19:23 +08:00
|
|
|
#ifdef CONFIG_CPU_HAS_ASID
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned int id;
|
2010-01-27 02:09:42 +08:00
|
|
|
spinlock_t id_lock;
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
2006-06-30 03:17:15 +08:00
|
|
|
unsigned int kvm_seq;
|
2005-04-17 06:20:36 +08:00
|
|
|
} mm_context_t;
|
|
|
|
|
2007-05-17 17:19:23 +08:00
|
|
|
#ifdef CONFIG_CPU_HAS_ASID
|
2005-04-17 06:20:36 +08:00
|
|
|
#define ASID(mm) ((mm)->context.id & 255)
|
|
|
|
#else
|
|
|
|
#define ASID(mm) (0)
|
|
|
|
#endif
|
|
|
|
|
2006-06-21 03:46:52 +08:00
|
|
|
#else
|
|
|
|
|
|
|
|
/*
|
|
|
|
* From nommu.h:
|
|
|
|
* Copyright (C) 2002, David McCullough <davidm@snapgear.com>
|
|
|
|
* modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
unsigned long end_brk;
|
|
|
|
} mm_context_t;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|