Changeset e7545f1b in rtems


Ignore:
Timestamp:
Dec 9, 2015, 10:43:49 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2858939a
Parents:
afe87e1a
git-author:
Sebastian Huber <sebastian.huber@…> (12/09/15 10:43:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/10/15 07:32:37)
Message:

bsps/powerpc: Use default bsp_pretasking_hook()

Update #2408.

Location:
c/src/lib/libbsp/powerpc
Files:
8 edited
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/Makefile.am

    rafe87e1a re7545f1b  
    5959EXTRA_DIST += shared/startup/bspstart.c shared/startup/pgtbl_setup.c \
    6060    shared/startup/pgtbl_activate.c shared/startup/linkcmds \
    61         shared/startup/zerobss.c shared/startup/pretaskinghook.c
     61        shared/startup/zerobss.c shared/startup/bsppredriverhook.c
    6262
    6363## shared/tod
  • c/src/lib/libbsp/powerpc/beatnik/Makefile.am

    rafe87e1a re7545f1b  
    6262    ../../powerpc/shared/startup/bspgetworkarea.c \
    6363    ../../powerpc/shared/startup/probeMemEnd.c \
    64     ../../powerpc/shared/startup/pretaskinghook.c \
     64    ../../powerpc/shared/startup/bsppredriverhook.c \
    6565    ../../powerpc/shared/startup/zerobss.c \
    6666    ../../powerpc/shared/startup/pgtbl_setup.c \
     
    6868    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    6969    startup/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
    70     ../../shared/bsppredriverhook.c \
     70    ../../shared/bsppretaskinghook.c \
    7171    ../../shared/gnatinstallhandler.c
    7272
  • c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am

    rafe87e1a re7545f1b  
    4444        ../../powerpc/shared/startup/bspgetworkarea.c \
    4545        ../../powerpc/shared/showbats.c \
    46         ../../powerpc/shared/startup/pretaskinghook.c \
    47         ../../shared/bsppredriverhook.c \
     46    ../../powerpc/shared/startup/bsppredriverhook.c \
     47        ../../shared/bsppretaskinghook.c \
    4848        ../../powerpc/shared/startup/zerobss.c \
    4949    ../../powerpc/shared/startup/pgtbl_setup.c \
  • c/src/lib/libbsp/powerpc/mvme3100/Makefile.am

    rafe87e1a re7545f1b  
    5252libbsp_a_SOURCES += startup/bspstart.c \
    5353    startup/misc.c ../../powerpc/shared/startup/bspgetworkarea.c \
    54     ../../powerpc/shared/startup/pretaskinghook.c \
     54    ../../powerpc/shared/startup/bsppredriverhook.c \
    5555    ../../powerpc/shared/startup/zerobss.c \
    5656    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    5757    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
     58    ../../shared/bsppretaskinghook.c \
    5859    ../../shared/gnatinstallhandler.c
    5960# tod
  • c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h

    rafe87e1a re7545f1b  
    179179 */
    180180int BSP_i2c_initialize(void);
     181#define BSP_PREDRIVER_I2C_INIT
    181182
    182183/* System Control Register */
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    rafe87e1a re7545f1b  
    200200  printk("Core Complex Bus (CCB) Clock Freq: %10u Hz\n", BSP_bus_frequency);
    201201  printk("CPU Clock Freq:                    %10u Hz\n", BSP_processor_frequency);
    202 }
    203 
    204 void
    205 bsp_predriver_hook(void)
    206 {
    207   /* Some drivers (RTC) may need i2c */
    208   BSP_i2c_initialize();
    209202}
    210203
  • c/src/lib/libbsp/powerpc/mvme5500/Makefile.am

    rafe87e1a re7545f1b  
    3030libbsp_a_SOURCES += startup/bspstart.c \
    3131    ../../powerpc/shared/startup/pgtbl_setup.c startup/pgtbl_activate.c \
    32     ../../powerpc/shared/startup/pretaskinghook.c \
     32    ../../powerpc/shared/startup/bsppredriverhook.c \
    3333    ../../powerpc/shared/startup/zerobss.c \
    3434    ../../powerpc/shared/startup/bspgetworkarea.c \
    3535    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
    36     ../../shared/bsppredriverhook.c startup/bspclean.c \
     36    ../../shared/bsppretaskinghook.c startup/bspclean.c \
    3737    ../../shared/bsplibc.c ../../shared/bsppost.c \
    3838    ../../shared/gnatinstallhandler.c startup/bspreset.c \
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    rafe87e1a re7545f1b  
    145145 * 0..RTEMS..__rtems_end | INIT_STACK | IRQ_STACK | ...... | workspace | TOP
    146146 *
    147  * and later calls our pretasking_hook() which ends up initializing
     147 * and later calls our bsp_predriver_hook() which ends up initializing
    148148 * libc which in turn initializes the heap
    149149 *
     
    151151 *
    152152 * The idea here is to first move the commandline to the future 'heap' area
    153  * from where it will be picked up by our pretasking_hook().
    154  * pretasking_hook() then moves it either to INIT_STACK or the workspace
     153 * from where it will be picked up by our bsp_predriver_hook().
     154 * bsp_predriver_hook() then moves it either to INIT_STACK or the workspace
    155155 * area using proper allocation, initializes libc and finally moves
    156156 * the data to the environment / malloced areas...
  • c/src/lib/libbsp/powerpc/shared/startup/bsppredriverhook.c

    rafe87e1a re7545f1b  
    11/*
    2  *  bsp_pretasking_hook().
    3  *  Initializes the heap, libc and VME.
     2 *  bsp_predriver_hook().
     3 *  Optionally initializes I2C and VME.
    44 */
    55
     
    2929
    3030/*
    31  *  bsp_pretasking_hook
     31 *  bsp_predriver_hook
    3232 *
    3333 *  Description:
    34  *      BSP pretasking hook.  Called just before drivers are initialized.
     34 *      BSP predriver hook.  Called just before drivers are initialized.
    3535 *
    3636 *  NOTES:
     
    4040 */
    4141
    42 void bsp_pretasking_hook(void)
     42void bsp_predriver_hook(void)
    4343{
     44#ifdef BSP_PREDRIVER_I2C_INIT
     45  /* Some drivers (RTC) may need i2c */
     46  BSP_i2c_initialize();
     47#endif
     48
    4449  /* Note that VME support may be omitted also by
    4550   * providing a no-op  BSP_vme_config routine
     
    6166
    6267#ifdef SHOW_MORE_INIT_SETTINGS
    63   printk("Leaving bsp_pretasking_hook\n");
     68  printk("Leaving bsp_predriver_hook\n");
    6469#endif
    6570}
Note: See TracChangeset for help on using the changeset viewer.