Patched moved to applied and current directories.
[rtems-devel.git] / rtems-patches / current / rtems-m9328-pimx1-mapping-change.patch
1 Index: rtems/c/src/lib/libbsp/arm/csb336/startup/memmap.c
2 ===================================================================
3 --- rtems.orig/c/src/lib/libbsp/arm/csb336/startup/memmap.c
4 +++ rtems/c/src/lib/libbsp/arm/csb336/startup/memmap.c
5 @@ -21,8 +21,12 @@ mmu_sect_map_t mem_map[] = {
6  /*  <phys addr>  <virt addr> <size> <flags> */
7      {0x08200000, 0x00000000,   1,    MMU_CACHE_NONE},     /* Mirror of SDRAM */
8      {0x00100000, 0x00100000,   1,    MMU_CACHE_NONE},     /* Bootstrap ROM */
9 -    {0x00200000, 0x00200000,   1,    MMU_CACHE_NONE},     /* Internal Regs */
10 +    {0x00200000, 0x00200000,   2,    MMU_CACHE_NONE},     /* Internal Regs + eSRAM */
11 +  #if 1
12 +    {0x08000000, 0x08000000,  32,    MMU_CACHE_WBACK},    /* SDRAM */
13 +  #else
14      {0x08000000, 0x08000000,  32,    MMU_CACHE_WTHROUGH}, /* SDRAM */
15 +  #endif
16      {0x10000000, 0x10000000,   8,    MMU_CACHE_NONE},     /* CS0 - Flash */
17      {0x12000000, 0x12000000,   1,    MMU_CACHE_NONE},     /* CS1 - enet */
18      {0x13000000, 0x13000000,   1,    MMU_CACHE_NONE},     /* CS2 - */