blob: 150cb92bb6664e0ead1795a81e93ebed8f33f579 [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 {
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 unsigned long end_brk;
8} mm_context_t;
Hirokazu Takatafabb6262007-02-10 01:43:40 -08009
10#else /* CONFIG_MMU */
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12/* Default "unsigned long" context */
13#ifndef CONFIG_SMP
14typedef unsigned long mm_context_t;
15#else
16typedef unsigned long mm_context_t[NR_CPUS];
17#endif
18
Hirokazu Takatafabb6262007-02-10 01:43:40 -080019#endif /* CONFIG_MMU */
20
21#endif /* _ASM_M32R_MMU_H */