2005-04-16 22:20:36 +00:00
|
|
|
#ifndef __ARM_MMU_H
|
|
|
|
#define __ARM_MMU_H
|
|
|
|
|
2006-06-20 19:46:52 +00:00
|
|
|
#ifdef CONFIG_MMU
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
typedef struct {
|
|
|
|
#if __LINUX_ARM_ARCH__ >= 6
|
|
|
|
unsigned int id;
|
|
|
|
#endif
|
|
|
|
} mm_context_t;
|
|
|
|
|
|
|
|
#if __LINUX_ARM_ARCH__ >= 6
|
|
|
|
#define ASID(mm) ((mm)->context.id & 255)
|
|
|
|
#else
|
|
|
|
#define ASID(mm) (0)
|
|
|
|
#endif
|
|
|
|
|
2006-06-20 19:46:52 +00: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 {
|
|
|
|
struct vm_list_struct *vmlist;
|
|
|
|
unsigned long end_brk;
|
|
|
|
} mm_context_t;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|