Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_M32R_MMU_H |
| 2 | #define _ASM_M32R_MMU_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #if !defined(CONFIG_MMU) |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | typedef struct { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | unsigned long end_brk; |
| 8 | } mm_context_t; |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 9 | |
| 10 | #else /* CONFIG_MMU */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | /* Default "unsigned long" context */ |
| 13 | #ifndef CONFIG_SMP |
| 14 | typedef unsigned long mm_context_t; |
| 15 | #else |
| 16 | typedef unsigned long mm_context_t[NR_CPUS]; |
| 17 | #endif |
| 18 | |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 19 | #endif /* CONFIG_MMU */ |
| 20 | |
| 21 | #endif /* _ASM_M32R_MMU_H */ |