diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-06 21:01:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-06 21:01:27 +0000 |
commit | 1781f59fcbac1b606ff715add397543e9d9619c9 (patch) | |
tree | bb49698e6761d7aa253ffa4e36fc1652430cddbe /c/src/lib/libbsp/arm/smdk2410/startup/memmap.c | |
parent | 2008-05-06 Ray Xu <rayx.cn@gmail.com> (diff) | |
download | rtems-1781f59fcbac1b606ff715add397543e9d9619c9.tar.bz2 |
2008-05-06 Ray Xu <rayx.cn@gmail.com>
* ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
preinstall.am, include/bsp.h, include/bspopts.h.in, startup/linkcmds,
startup/memmap.c: New files.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/smdk2410/startup/memmap.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/smdk2410/startup/memmap.c b/c/src/lib/libbsp/arm/smdk2410/startup/memmap.c new file mode 100644 index 0000000000..f316b4a394 --- /dev/null +++ b/c/src/lib/libbsp/arm/smdk2410/startup/memmap.c @@ -0,0 +1,28 @@ +/* + * GP32 Memory Map + * + * Copyright (c) 2004 by Cogent Computer Systems + * Written by Jay Monkman <jtm@lopingdog.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ +#include <rtems.h> +#include <libcpu/mmu.h> + +/* Remember, the ARM920 has 64 TLBs. If you have more 1MB sections than + * that, you'll have TLB lookups, which could hurt performance. + */ +mmu_sect_map_t mem_map[] = { +/* <phys addr> <virt addr> <size> <flags> */ + {0x30000000, 0x00000000, 1, MMU_CACHE_NONE}, /* SDRAM for vectors */ + {0x30000000, 0x30000000, 32, MMU_CACHE_WTHROUGH}, /* SDRAM W cache */ + {0x32000000, 0x32000000, 32, MMU_CACHE_NONE}, /* SDRAM W/O cache */ + {0x48000000, 0x48000000, 256, MMU_CACHE_NONE}, /* Internals Regs - */ + {0x50000000, 0x50000000, 256, MMU_CACHE_NONE}, /* Internal Regs - */ + {0x00000000, 0x00000000, 0, 0} /* The end */ +}; |