Commit | Line | Data |
---|---|---|
96f1050d RG |
1 | /* |
2 | * Copyright 2004-2009 Analog Devices Inc. | |
3 | * 2002 David McCullough <davidm@snapgear.com> | |
4 | * | |
5 | * Licensed under the GPL-2. | |
6 | */ | |
7 | ||
1394f032 BW |
8 | #ifndef __MMU_H |
9 | #define __MMU_H | |
10 | ||
1394f032 BW |
11 | struct sram_list_struct { |
12 | struct sram_list_struct *next; | |
13 | void *addr; | |
14 | size_t length; | |
15 | }; | |
16 | ||
17 | typedef struct { | |
1394f032 BW |
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 | |
b97b8a99 BS |
31 | #ifdef CONFIG_MPU |
32 | unsigned long *page_rwx_mask; | |
33 | #endif | |
1394f032 BW |
34 | } mm_context_t; |
35 | ||
36 | #endif |