blob: 26f6b70b11e2d21dd9b19c3f8177b07476914ed7 [file] [log] [blame]
Robin Getz96f10502009-09-24 14:11:24 +00001/*
2 * Copyright 2004-2009 Analog Devices Inc.
3 * 2002 David McCullough <davidm@snapgear.com>
4 *
5 * Licensed under the GPL-2.
6 */
7
Bryan Wu1394f032007-05-06 14:50:22 -07008#ifndef __MMU_H
9#define __MMU_H
10
Bryan Wu1394f032007-05-06 14:50:22 -070011struct sram_list_struct {
12 struct sram_list_struct *next;
13 void *addr;
14 size_t length;
15};
16
17typedef struct {
Bryan Wu1394f032007-05-06 14:50:22 -070018 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 Schmidtb97b8a92008-01-27 18:39:16 +080031#ifdef CONFIG_MPU
32 unsigned long *page_rwx_mask;
33#endif
Bryan Wu1394f032007-05-06 14:50:22 -070034} mm_context_t;
35
36#endif