bsps/virtex*: Use default bsp_pretasking_hook()

Update #2408.
This commit is contained in:
Sebastian Huber
2015-12-09 11:21:12 +01:00
parent 37030e38c6
commit 20d7093a9a
6 changed files with 4 additions and 36 deletions

View File

@@ -32,6 +32,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../shared/startup/zerobss.c \ ../shared/startup/zerobss.c \
../../shared/bsplibc.c \ ../../shared/bsplibc.c \
../../shared/bspgetworkarea.c \ ../../shared/bspgetworkarea.c \
../../shared/bsppretaskinghook.c \
../../shared/bsppost.c \ ../../shared/bsppost.c \
startup/bspstart.c \ startup/bspstart.c \
../../shared/bootcard.c \ ../../shared/bootcard.c \

View File

@@ -284,7 +284,7 @@ startupBL:
* PowerPC EABI. * PowerPC EABI.
* *
* boot_card() supervises the initialization of RTEMS and the C * boot_card() supervises the initialization of RTEMS and the C
* library. It calls bsp_start(), bsp_pretasking_hook(), etc. * library. It calls bsp_start(), bsp_predriver_hook(), etc.
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
lwz r2,toc_pointer-base_addr(r1) /* set r2 to toc */ lwz r2,toc_pointer-base_addr(r1) /* set r2 to toc */
lwz r1,stack_top-base_addr(r1) /* set r1 to stack_top */ lwz r1,stack_top-base_addr(r1) /* set r1 to stack_top */

View File

@@ -109,9 +109,6 @@ static void _noopfun(void) {}
void app_bsp_start(void) void app_bsp_start(void)
__attribute__(( weak, alias("_noopfun") )); __attribute__(( weak, alias("_noopfun") ));
void app_bsp_pretasking_hook(void)
__attribute__(( weak, alias("_noopfun") ));
void app_bsp_predriver_hook(void) void app_bsp_predriver_hook(void)
__attribute__(( weak, alias("_noopfun") )); __attribute__(( weak, alias("_noopfun") ));
@@ -234,20 +231,6 @@ void bsp_start(void)
} }
/*
* BSP pretasking hook. Called just before drivers are initialized.
* Used to setup libc and install any BSP extensions.
*
* Must not use libc (to do io) from here, since drivers are not yet
* initialized.
*/
void bsp_pretasking_hook(void)
{
app_bsp_pretasking_hook();
}
/* /*
* BSP predriver hook. Called by boot_card() just before drivers are * BSP predriver hook. Called by boot_card() just before drivers are
* initialized. Clear out any stale interrupts here. * initialized. Clear out any stale interrupts here.

View File

@@ -31,6 +31,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../shared/startup/zerobss.c \ ../shared/startup/zerobss.c \
../../shared/bsplibc.c \ ../../shared/bsplibc.c \
../../shared/bspgetworkarea.c \ ../../shared/bspgetworkarea.c \
../../shared/bsppretaskinghook.c \
../../shared/bsppost.c \ ../../shared/bsppost.c \
startup/bspstart.c \ startup/bspstart.c \
../../shared/bootcard.c \ ../../shared/bootcard.c \

View File

@@ -376,7 +376,7 @@ startupBL:
* PowerPC EABI. * PowerPC EABI.
* *
* boot_card() supervises the initialization of RTEMS and the C * boot_card() supervises the initialization of RTEMS and the C
* library. It calls bsp_start(), bsp_pretasking_hook(), etc. * library. It calls bsp_start(), bsp_predriver_hook(), etc.
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
lwz r2,toc_pointer-base_addr(r1) /* set r2 to toc */ lwz r2,toc_pointer-base_addr(r1) /* set r2 to toc */
lwz r1,stack_top-base_addr(r1) /* set r1 to stack_top */ lwz r1,stack_top-base_addr(r1) /* set r1 to stack_top */

View File

@@ -123,9 +123,6 @@ static void _noopfun(void) {}
void app_bsp_start(void) void app_bsp_start(void)
__attribute__(( weak, alias("_noopfun") )); __attribute__(( weak, alias("_noopfun") ));
void app_bsp_pretasking_hook(void)
__attribute__(( weak, alias("_noopfun") ));
void app_bsp_predriver_hook(void) void app_bsp_predriver_hook(void)
__attribute__(( weak, alias("_noopfun") )); __attribute__(( weak, alias("_noopfun") ));
@@ -255,20 +252,6 @@ void bsp_start(void)
} }
/*
* BSP pretasking hook. Called just before drivers are initialized.
* Used to setup libc and install any BSP extensions.
*
* Must not use libc (to do io) from here, since drivers are not yet
* initialized.
*/
void bsp_pretasking_hook(void)
{
app_bsp_pretasking_hook();
}
/* /*
* BSP predriver hook. Called by boot_card() just before drivers are * BSP predriver hook. Called by boot_card() just before drivers are
* initialized. Clear out any stale interrupts here. * initialized. Clear out any stale interrupts here.