Changeset 52c551a7 in rtems


Ignore:
Timestamp:
Apr 24, 2012, 12:37:32 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Children:
7619a60
Parents:
2947bae (diff), 05a20c1f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'upstream'

Location:
c/src/lib/libbsp
Files:
1 added
20 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/configure.ac

    r2947bae r52c551a7  
    7878RTEMS_BSPOPTS_HELP([LPC24XX_EMC_TEST],[enable tests for EMC])
    7979
    80 RTEMS_BSPOPTS_SET([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[lpc23*],[])
    81 RTEMS_BSPOPTS_SET([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[*],[1])
    82 RTEMS_BSPOPTS_HELP([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[enable special task stack support for task stacks in internal RAM])
    83 
    8480RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_CONSOLE],[*],[0])
    8581RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_CONSOLE],[configuration for console (UART 0)])
  • c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c

    r2947bae r52c551a7  
    2929#include <bsp/linker-symbols.h>
    3030#include <bsp/lpc24xx.h>
    31 #include <bsp/stackalloc.h>
    3231#include <bsp/system-clocks.h>
    3332#include <bsp/uart-output-char.h>
     
    9594  /* DMA */
    9695  lpc24xx_dma_initialize();
    97 
    98   /* Task stacks */
    99   #ifdef LPC24XX_SPECIAL_TASK_STACKS_SUPPORT
    100     bsp_stack_initialize(
    101       bsp_section_stack_begin,
    102       (uintptr_t) bsp_section_stack_size
    103     );
    104   #endif
    10596}
  • c/src/lib/libbsp/arm/lpc32xx/startup/bspstart.c

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2009, 2010
    11  * embedded brains GmbH
    12  * Obere Lagerstr. 30
    13  * D-82178 Puchheim
    14  * Germany
    15  * <rtems@embedded-brains.de>
     10 * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
     11 *
     12 *  embedded brains GmbH
     13 *  Obere Lagerstr. 30
     14 *  82178 Puchheim
     15 *  Germany
     16 *  <rtems@embedded-brains.de>
    1617 *
    1718 * The license and distribution terms for this file may be
     
    2526#include <bsp/irq.h>
    2627#include <bsp/linker-symbols.h>
    27 #include <bsp/stackalloc.h>
    2828#include <bsp/lpc32xx.h>
    2929
     
    3333    _CPU_Fatal_halt(0xe);
    3434  }
    35 
    36   bsp_stack_initialize(
    37     bsp_section_stack_begin,
    38     (uintptr_t) bsp_section_stack_size
    39   );
    4035}
  • c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am

    r2947bae r52c551a7  
    2626project_lib_DATA += startup/linkcmds
    2727dist_project_lib_DATA += ../shared/startup/linkcmds.base       
     28dist_project_lib_DATA += startup/linkcmds.mpc55xx
    2829dist_project_lib_DATA += startup/linkcmds.gwlcfm
    2930dist_project_lib_DATA += startup/linkcmds.mpc5566evb
     
    4748include_bsp_HEADERS += ../../shared/include/irq-generic.h
    4849include_bsp_HEADERS += ../../shared/include/irq-info.h
     50include_bsp_HEADERS += ../../shared/include/stackalloc.h
    4951include_bsp_HEADERS += ../../shared/include/utility.h
    5052include_bsp_HEADERS += ../shared/include/linker-symbols.h
     
    6567libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
    6668libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
     69libbsp_a_SOURCES += ../../shared/src/stackalloc.c
    6770libbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
    6871libbsp_a_SOURCES += ../shared/src/memcpy.c
  • c/src/lib/libbsp/powerpc/mpc55xxevb/preinstall.am

    r2947bae r52c551a7  
    5757        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.base
    5858PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.base
     59
     60$(PROJECT_LIB)/linkcmds.mpc55xx: startup/linkcmds.mpc55xx $(PROJECT_LIB)/$(dirstamp)
     61        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc55xx
     62PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc55xx
    5963
    6064$(PROJECT_LIB)/linkcmds.gwlcfm: startup/linkcmds.gwlcfm $(PROJECT_LIB)/$(dirstamp)
     
    118122PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-info.h
    119123
     124$(PROJECT_INCLUDE)/bsp/stackalloc.h: ../../shared/include/stackalloc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stackalloc.h
     126PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stackalloc.h
     127
    120128$(PROJECT_INCLUDE)/bsp/utility.h: ../../shared/include/utility.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    121129        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/utility.h
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.gwlcfm

    r2947bae r52c551a7  
    1 MEMORY
    2 {
    3         ROM (RX)  : ORIGIN = 0x0, LENGTH = 1536K
    4         RAM (AIW) : ORIGIN = 0x40000000, LENGTH = 80K
    5         RAM_EXT   : ORIGIN = 0x20000000, LENGTH = 512K
    6         NIRVANA   : ORIGIN = 0x0, LENGTH = 0
     1MEMORY {
     2        ROM : ORIGIN = 0x0, LENGTH = 1536K
     3        RAM : ORIGIN = 0x40000000, LENGTH = 80K
     4        RAM_EXT : ORIGIN = 0x20000000, LENGTH = 512K
     5        NOCACHE : ORIGIN = 0x0, LENGTH = 0
     6        NIRVANA : ORIGIN = 0x0, LENGTH = 0
    77}
    8 
    9 bsp_ram_start = ORIGIN (RAM);
    10 bsp_ram_end = ORIGIN (RAM) + LENGTH (RAM);
    11 bsp_ram_size = LENGTH (RAM);
    12 
    13 bsp_rom_start = ORIGIN (ROM);
    14 bsp_rom_end = ORIGIN (ROM) + LENGTH (ROM);
    15 bsp_rom_size = LENGTH (ROM);
    16 
    17 bsp_external_ram_start = ORIGIN (RAM_EXT);
    18 bsp_external_ram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT);
    19 bsp_external_ram_size = LENGTH (RAM_EXT);
    208
    219REGION_ALIAS ("REGION_START", ROM);
     
    3321REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    3422REGION_ALIAS ("REGION_WORK", RAM_EXT);
    35 REGION_ALIAS ("REGION_STACK", RAM_EXT);
     23REGION_ALIAS ("REGION_STACK", RAM);
     24REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3625
    37 INCLUDE linkcmds.base
     26INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5566evb

    r2947bae r52c551a7  
    1 MEMORY
    2 {
    3         ROM (RX)  : ORIGIN = 0x0, LENGTH = 3M
    4         RAM (AIW) : ORIGIN = 0x40000000, LENGTH = 128K
    5         RAM_EXT   : ORIGIN = 0x20000000, LENGTH = 512K
    6         NIRVANA   : ORIGIN = 0x0, LENGTH = 0
     1MEMORY {
     2        ROM : ORIGIN = 0x0, LENGTH = 3M
     3        RAM : ORIGIN = 0x40000000, LENGTH = 128K
     4        RAM_EXT : ORIGIN = 0x20000000, LENGTH = 512K
     5        NOCACHE : ORIGIN = 0x0, LENGTH = 0
     6        NIRVANA : ORIGIN = 0x0, LENGTH = 0
    77}
    8 
    9 bsp_ram_start = ORIGIN (RAM);
    10 bsp_ram_end = ORIGIN (RAM) + LENGTH (RAM);
    11 bsp_ram_size = LENGTH (RAM);
    12 
    13 bsp_rom_start = ORIGIN (ROM);
    14 bsp_rom_end = ORIGIN (ROM) + LENGTH (ROM);
    15 bsp_rom_size = LENGTH (ROM);
    16 
    17 bsp_external_ram_start = ORIGIN (RAM_EXT);
    18 bsp_external_ram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT);
    19 bsp_external_ram_size = LENGTH (RAM_EXT);
    208
    219REGION_ALIAS ("REGION_START", ROM);
     
    3321REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    3422REGION_ALIAS ("REGION_WORK", RAM_EXT);
    35 REGION_ALIAS ("REGION_STACK", RAM_EXT);
     23REGION_ALIAS ("REGION_STACK", RAM);
     24REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3625
    37 INCLUDE linkcmds.base
     26INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674fevb

    r2947bae r52c551a7  
    1 MEMORY
    2 {
    3         ROM (RX)  : ORIGIN = 0x0, LENGTH = 4M
    4         RAM (AIW) : ORIGIN = 0x40000000, LENGTH = 256K
    5         RAM_EXT   : ORIGIN = 0x20000000, LENGTH = 512K
    6         NIRVANA   : ORIGIN = 0x0, LENGTH = 0
     1MEMORY {
     2        ROM : ORIGIN = 0x0, LENGTH = 4M
     3        RAM : ORIGIN = 0x40000000, LENGTH = 256K - 16k
     4        RAM_EXT : ORIGIN = 0x20000000, LENGTH = 512K
     5        NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k
     6        NIRVANA : ORIGIN = 0x0, LENGTH = 0
    77}
    8 
    9 bsp_ram_start = ORIGIN (RAM);
    10 bsp_ram_end = ORIGIN (RAM) + LENGTH (RAM);
    11 bsp_ram_size = LENGTH (RAM);
    12 
    13 bsp_rom_start = ORIGIN (ROM);
    14 bsp_rom_end = ORIGIN (ROM) + LENGTH (ROM);
    15 bsp_rom_size = LENGTH (ROM);
    16 
    17 bsp_external_ram_start = ORIGIN (RAM_EXT);
    18 bsp_external_ram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT);
    19 bsp_external_ram_size = LENGTH (RAM_EXT);
    208
    219REGION_ALIAS ("REGION_START", ROM);
     
    3321REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    3422REGION_ALIAS ("REGION_WORK", RAM_EXT);
    35 REGION_ALIAS ("REGION_STACK", RAM_EXT);
     23REGION_ALIAS ("REGION_STACK", RAM);
     24REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3625
    37 INCLUDE linkcmds.base
     26INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.phycore_mpc5554

    r2947bae r52c551a7  
    33 * FLASH for development.
    44 */
    5 MEMORY
    6 {
    7         ROM (RX)       : ORIGIN = 0x00000000, LENGTH = 2M
    8         RAM (AIW)      : ORIGIN = 0x40000000, LENGTH = 64K
    9         RAM_EXT (AIW)  : ORIGIN = 0x21000000, LENGTH = 4M
    10         DEBUG_RAM (AIW): ORIGIN = 0x21400000, LENGTH = 4M
    11         NIRVANA        : ORIGIN = 0x00000000, LENGTH = 0
     5MEMORY {
     6        ROM : ORIGIN = 0x00000000, LENGTH = 2M
     7        RAM : ORIGIN = 0x40000000, LENGTH = 64K
     8        RAM_EXT : ORIGIN = 0x21000000, LENGTH = 4M
     9        DEBUG_RAM : ORIGIN = 0x21400000, LENGTH = 4M
     10        NOCACHE : ORIGIN = 0x0, LENGTH = 0
     11        NIRVANA : ORIGIN = 0x00000000, LENGTH = 0
    1212}
    13 
    14 bsp_ram_start = ORIGIN (RAM);
    15 bsp_ram_end = ORIGIN (RAM) + LENGTH (RAM);
    16 bsp_ram_size = LENGTH (RAM);
    17 
    18 bsp_rom_start = ORIGIN (ROM);
    19 bsp_rom_end = ORIGIN (ROM) + LENGTH (ROM);
    20 bsp_rom_size = LENGTH (ROM);
    21 
    22 bsp_external_ram_start = ORIGIN (RAM_EXT);
    23 bsp_external_ram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT);
    24 bsp_external_ram_size = LENGTH (RAM_EXT);
    2513
    2614bsp_debug_ram_start = ORIGIN (DEBUG_RAM);
     
    4230REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT);
    4331REGION_ALIAS ("REGION_WORK", RAM_EXT);
    44 REGION_ALIAS ("REGION_STACK", RAM_EXT);
     32REGION_ALIAS ("REGION_STACK", RAM);
     33REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    4534
    46 INCLUDE linkcmds.base
     35INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.xkt564levb

    r2947bae r52c551a7  
    33        RAM_0 : ORIGIN = 0x40000000, LENGTH = 64K
    44        RAM_1 : ORIGIN = 0x50000000, LENGTH = 64K
     5        RAM_EXT : ORIGIN = 0x0, LENGTH = 0
     6        NOCACHE : ORIGIN = 0x0, LENGTH = 0
    57        NIRVANA : ORIGIN = 0x0, LENGTH = 0
    68}
    7 
    8 bsp_ram_start = ORIGIN (RAM_0);
    9 bsp_ram_size = LENGTH (RAM_0);
    10 bsp_ram_end = bsp_ram_start + bsp_ram_size;
    119
    1210bsp_ram_1_start = ORIGIN (RAM_1);
    1311bsp_ram_1_size = LENGTH (RAM_1);
    1412bsp_ram_1_end = bsp_ram_1_start + bsp_ram_1_size;
    15 
    16 bsp_rom_start = ORIGIN (ROM);
    17 bsp_rom_size = LENGTH (ROM);
    18 bsp_rom_end = bsp_rom_start + bsp_rom_size;
    1913
    2014REGION_ALIAS ("REGION_START", ROM);
     
    3327REGION_ALIAS ("REGION_WORK", RAM_1);
    3428REGION_ALIAS ("REGION_STACK", RAM_1);
     29REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
    3530
    36 INCLUDE linkcmds.base
     31INCLUDE linkcmds.mpc55xx
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    2626BSP_START_TEXT_SECTION const struct MMU_tag
    2727  mpc55xx_start_config_mmu_early [] = {
    28 #if MPC55XX_CHIP_TYPE / 10 == 564
     28#if MPC55XX_CHIP_TYPE / 10 == 555
     29  /* Internal SRAM 96k */
     30  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 1, 1, 1, 0),
     31#elif MPC55XX_CHIP_TYPE / 10 == 556
     32  /* Internal SRAM 128k */
     33  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 1, 1, 1, 0),
     34  MPC55XX_MMU_TAG_INITIALIZER(5, 0x40010000, MPC55XX_MMU_64K, 0, 1, 1, 0),
     35#elif MPC55XX_CHIP_TYPE / 10 == 564
    2936  /* Internal flash 1M */
    3037  MPC55XX_MMU_TAG_INITIALIZER(0, 0x00000000, MPC55XX_MMU_1M, 1, 0, 1, 1),
     
    3239  MPC55XX_MMU_TAG_INITIALIZER(1, 0xffe00000, MPC55XX_MMU_2M, 0, 1, 1, 1),
    3340  MPC55XX_MMU_TAG_INITIALIZER(2, 0xc3f00000, MPC55XX_MMU_1M, 0, 1, 1, 1),
    34   /* Internal SRAM 64k */
    35   MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 1, 1, 1, 1)
     41  /* Internal SRAM 64k + 64k */
     42  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 1, 1, 1, 0),
     43  MPC55XX_MMU_TAG_INITIALIZER(4, 0x50000000, MPC55XX_MMU_64K, 0, 1, 1, 0)
     44#elif MPC55XX_CHIP_TYPE / 10 == 567
     45  /* Internal SRAM 256k */
     46  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 1, 1, 1, 0)
    3647#endif
    3748};
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu.c

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    8787  /* Internal flash 3M */
    8888  MPC55XX_MMU_TAG_INITIALIZER(1, 0x00000000, MPC55XX_MMU_64K, 1, 0, 1, 0),
    89   MPC55XX_MMU_TAG_INITIALIZER(5, 0x00010000, MPC55XX_MMU_64K, 1, 0, 1, 0),
    90   MPC55XX_MMU_TAG_INITIALIZER(6, 0x00020000, MPC55XX_MMU_64K, 1, 0, 1, 0),
    91   MPC55XX_MMU_TAG_INITIALIZER(7, 0x00030000, MPC55XX_MMU_64K, 1, 0, 1, 0),
    92   MPC55XX_MMU_TAG_INITIALIZER(8, 0x00040000, MPC55XX_MMU_256K, 1, 0, 1, 0),
    93   MPC55XX_MMU_TAG_INITIALIZER(9, 0x00080000, MPC55XX_MMU_256K, 1, 0, 1, 0),
    94   MPC55XX_MMU_TAG_INITIALIZER(10, 0x000c0000, MPC55XX_MMU_256K, 1, 0, 1, 0),
    95   MPC55XX_MMU_TAG_INITIALIZER(11, 0x00100000, MPC55XX_MMU_1M, 1, 0, 1, 0),
    96   MPC55XX_MMU_TAG_INITIALIZER(12, 0x00200000, MPC55XX_MMU_1M, 1, 0, 1, 0),
     89  MPC55XX_MMU_TAG_INITIALIZER(6, 0x00010000, MPC55XX_MMU_64K, 1, 0, 1, 0),
     90  MPC55XX_MMU_TAG_INITIALIZER(7, 0x00020000, MPC55XX_MMU_64K, 1, 0, 1, 0),
     91  MPC55XX_MMU_TAG_INITIALIZER(8, 0x00030000, MPC55XX_MMU_64K, 1, 0, 1, 0),
     92  MPC55XX_MMU_TAG_INITIALIZER(9, 0x00040000, MPC55XX_MMU_256K, 1, 0, 1, 0),
     93  MPC55XX_MMU_TAG_INITIALIZER(10, 0x00080000, MPC55XX_MMU_256K, 1, 0, 1, 0),
     94  MPC55XX_MMU_TAG_INITIALIZER(11, 0x000c0000, MPC55XX_MMU_256K, 1, 0, 1, 0),
     95  MPC55XX_MMU_TAG_INITIALIZER(12, 0x00100000, MPC55XX_MMU_1M, 1, 0, 1, 0),
     96  MPC55XX_MMU_TAG_INITIALIZER(13, 0x00200000, MPC55XX_MMU_1M, 1, 0, 1, 0),
    9797  /* External SRAM 512k */
    9898  MPC55XX_MMU_TAG_INITIALIZER(2, 0x20000000, MPC55XX_MMU_256K, 0, 1, 1, 0),
    99   MPC55XX_MMU_TAG_INITIALIZER(13, 0x20040000, MPC55XX_MMU_256K, 0, 1, 1, 0),
     99  MPC55XX_MMU_TAG_INITIALIZER(14, 0x20040000, MPC55XX_MMU_256K, 0, 1, 1, 0),
    100100  /* Internal SRAM 128k */
    101   MPC55XX_MMU_TAG_INITIALIZER(3, 0x40010000, MPC55XX_MMU_64K, 0, 1, 1, 0),
    102   MPC55XX_MMU_TAG_INITIALIZER(14, 0x40000000, MPC55XX_MMU_64K, 0, 1, 1, 0),
     101  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 0, 1, 1, 0),
     102  MPC55XX_MMU_TAG_INITIALIZER(5, 0x40010000, MPC55XX_MMU_64K, 0, 1, 1, 0),
    103103  /* External Ethernet Controller 64k */
    104104  MPC55XX_MMU_TAG_INITIALIZER(15, 0x3fff8000, MPC55XX_MMU_64K, 0, 1, 1, 1)
     
    115115  MPC55XX_MMU_TAG_INITIALIZER(2, 0x20000000, MPC55XX_MMU_512K, 0, 1, 1, 0),
    116116  /* Internal SRAM 256k */
    117   MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 0, 1, 1, 0),
     117  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_128K, 0, 1, 1, 0),
     118  MPC55XX_MMU_TAG_INITIALIZER(11, 0x40020000, MPC55XX_MMU_64K, 0, 1, 1, 0),
     119  MPC55XX_MMU_TAG_INITIALIZER(12, 0x40030000, MPC55XX_MMU_32K, 0, 1, 1, 0),
     120  MPC55XX_MMU_TAG_INITIALIZER(13, 0x40038000, MPC55XX_MMU_16K, 0, 1, 1, 0),
     121  MPC55XX_MMU_TAG_INITIALIZER(14, 0x4003c000, MPC55XX_MMU_16K, 0, 1, 1, 1),
    118122  /* External Ethernet controller */
    119123  MPC55XX_MMU_TAG_INITIALIZER(15, 0x3fff8000, MPC55XX_MMU_64K, 0, 1, 1, 1)
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-early.c

    r2947bae r52c551a7  
    167167    mpc55xx_start_cache();
    168168  #endif
     169  mpc55xx_start_internal_ram();
    169170  mpc55xx_start_mmu();
    170   mpc55xx_start_internal_ram();
    171171  mpc55xx_start_mode_change();
    172172  mpc55xx_start_siu();
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_core_0

    r2947bae r52c551a7  
    2626REGION_ALIAS ("REGION_WORK", HIGH);
    2727REGION_ALIAS ("REGION_STACK", HIGH);
     28REGION_ALIAS ("REGION_NOCACHE", HIGH);
    2829
    2930bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_core_1

    r2947bae r52c551a7  
    2525REGION_ALIAS ("REGION_WORK", RAM);
    2626REGION_ALIAS ("REGION_STACK", RAM);
     27REGION_ALIAS ("REGION_NOCACHE", RAM);
    2728
    2829bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_p1020rdb

    r2947bae r52c551a7  
    2626REGION_ALIAS ("REGION_WORK", HIGH);
    2727REGION_ALIAS ("REGION_STACK", HIGH);
     28REGION_ALIAS ("REGION_NOCACHE", HIGH);
    2829
    2930bsp_section_robarrier_align = 0x1000000;
  • c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2010-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    9696LINKER_SYMBOL(bsp_section_stack_size)
    9797
     98LINKER_SYMBOL(bsp_section_nocache_begin)
     99LINKER_SYMBOL(bsp_section_nocache_end)
     100LINKER_SYMBOL(bsp_section_nocache_size)
     101
    98102#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
    99103
    100104#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
     105
     106#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
    101107
    102108/** @} */
  • c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    324324        } > REGION_STACK AT > REGION_STACK
    325325        bsp_section_stack_size = bsp_section_stack_end - bsp_section_stack_begin;
     326
     327        .nocache : {
     328                bsp_section_nocache_begin = .;
     329                *(.bsp_nocache)
     330                bsp_section_nocache_end = .;
     331        } > REGION_NOCACHE AT > REGION_NOCACHE
     332        bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin;
    326333
    327334        /* FIXME */
  • c/src/lib/libbsp/shared/include/stackalloc.h

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2009
    11  * embedded brains GmbH
    12  * Obere Lagerstr. 30
    13  * D-82178 Puchheim
    14  * Germany
    15  * rtems@embedded-brains.de
     10 * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
     11 *
     12 *  embedded brains GmbH
     13 *  Obere Lagerstr. 30
     14 *  82178 Puchheim
     15 *  Germany
     16 *  <rtems@embedded-brains.de>
    1617 *
    1718 * The license and distribution terms for this file may be
     
    5253
    5354/**
    54  * @brief Task stack management initialization.
    55  *
    56  * This function should be called in bsp_start() with the designated task stack
    57  * area begin address @a begin and task stack area size @a size in bytes.  The
    58  * area boundaries have to be aligned properly.
    59  */
    60 void bsp_stack_initialize(void *begin, uintptr_t size);
    61 
    62 /**
    6355 * @brief Task stack allocator for @ref CONFIGURE_TASK_STACK_ALLOCATOR.
    6456 *
  • c/src/lib/libbsp/shared/src/stackalloc.c

    r2947bae r52c551a7  
    88
    99/*
    10  * Copyright (c) 2009
    11  * embedded brains GmbH
    12  * Obere Lagerstr. 30
    13  * D-82178 Puchheim
    14  * Germany
    15  * rtems@embedded-brains.de
     10 * Copyright (c) 2009-2012 embedded brains GmbH.  All rights reserved.
     11 *
     12 *  embedded brains GmbH
     13 *  Obere Lagerstr. 30
     14 *  82178 Puchheim
     15 *  Germany
     16 *  <rtems@embedded-brains.de>
    1617 *
    1718 * The license and distribution terms for this file may be
     
    2021 */
    2122
     23#include <bsp/stackalloc.h>
     24
    2225#include <rtems.h>
    2326#include <rtems/score/wkspace.h>
    2427
    25 #include <bsp/stackalloc.h>
     28#include <bsp/linker-symbols.h>
    2629
    2730#define BSP_STACK_MAGIC 0xdeadbeef
     
    3033  .page_size = BSP_STACK_MAGIC
    3134};
    32 
    33 void bsp_stack_initialize(void *begin, uintptr_t size)
    34 {
    35   bsp_stack_heap.area_begin = (uintptr_t) begin;
    36   bsp_stack_heap.area_end = size;
    37 }
    3835
    3936void *bsp_stack_allocate(size_t size)
     
    4441    uintptr_t rv = _Heap_Initialize(
    4542      &bsp_stack_heap,
    46       (void *) bsp_stack_heap.area_begin,
    47       bsp_stack_heap.area_end,
     43      bsp_section_stack_begin,
     44      (uintptr_t) bsp_section_stack_size,
    4845      CPU_STACK_ALIGNMENT
    4946    );
Note: See TracChangeset for help on using the changeset viewer.