blob: d9bd724479cf0a078ea9b92fa4f73045468a8234 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_M32R_MMU_H
2#define _ASM_M32R_MMU_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#if !defined(CONFIG_MMU)
Hirokazu Takatafabb6262007-02-10 01:43:40 -08005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006typedef struct {
7 struct vm_list_struct *vmlist;
8 unsigned long end_brk;
9} mm_context_t;
Hirokazu Takatafabb6262007-02-10 01:43:40 -080010
11#else /* CONFIG_MMU */
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13/* Default "unsigned long" context */
14#ifndef CONFIG_SMP
15typedef unsigned long mm_context_t;
16#else
17typedef unsigned long mm_context_t[NR_CPUS];
18#endif
19
Hirokazu Takatafabb6262007-02-10 01:43:40 -080020#endif /* CONFIG_MMU */
21
22#endif /* _ASM_M32R_MMU_H */