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 { |
| 7 | struct vm_list_struct *vmlist; |
| 8 | unsigned long end_brk; |
| 9 | } mm_context_t; |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 10 | |
| 11 | #else /* CONFIG_MMU */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
| 13 | /* Default "unsigned long" context */ |
| 14 | #ifndef CONFIG_SMP |
| 15 | typedef unsigned long mm_context_t; |
| 16 | #else |
| 17 | typedef unsigned long mm_context_t[NR_CPUS]; |
| 18 | #endif |
| 19 | |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 20 | #endif /* CONFIG_MMU */ |
| 21 | |
| 22 | #endif /* _ASM_M32R_MMU_H */ |