Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004-2009 Analog Devices Inc. |
| 3 | * 2002 David McCullough <davidm@snapgear.com> |
| 4 | * |
| 5 | * Licensed under the GPL-2. |
| 6 | */ |
| 7 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 8 | #ifndef __MMU_H |
| 9 | #define __MMU_H |
| 10 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 11 | struct sram_list_struct { |
| 12 | struct sram_list_struct *next; |
| 13 | void *addr; |
| 14 | size_t length; |
| 15 | }; |
| 16 | |
| 17 | typedef struct { |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 18 | unsigned long end_brk; |
| 19 | unsigned long stack_start; |
| 20 | |
| 21 | /* Points to the location in SDRAM where the L1 stack is normally |
| 22 | saved, or NULL if the stack is always in SDRAM. */ |
| 23 | void *l1_stack_save; |
| 24 | |
| 25 | struct sram_list_struct *sram_list; |
| 26 | |
| 27 | #ifdef CONFIG_BINFMT_ELF_FDPIC |
| 28 | unsigned long exec_fdpic_loadmap; |
| 29 | unsigned long interp_fdpic_loadmap; |
| 30 | #endif |
Bernd Schmidt | b97b8a9 | 2008-01-27 18:39:16 +0800 | [diff] [blame] | 31 | #ifdef CONFIG_MPU |
| 32 | unsigned long *page_rwx_mask; |
| 33 | #endif |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 34 | } mm_context_t; |
| 35 | |
| 36 | #endif |