[rtems commit] bsps/virtex*: Use default bsp_pretasking_hook()
Sebastian Huber
sebh at rtems.org
Thu Dec 10 07:33:50 UTC 2015
Module: rtems
Branch: master
Commit: 20d7093a9ab3c1838aa2639ecb61c2aec2dd044e
Changeset: http://git.rtems.org/rtems/commit/?id=20d7093a9ab3c1838aa2639ecb61c2aec2dd044e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Dec 9 11:21:12 2015 +0100
bsps/virtex*: Use default bsp_pretasking_hook()
Update #2408.
---
c/src/lib/libbsp/powerpc/virtex4/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/virtex4/start/start.S | 2 +-
c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c | 17 -----------------
c/src/lib/libbsp/powerpc/virtex5/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/virtex5/start/start.S | 2 +-
c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c | 17 -----------------
6 files changed, 4 insertions(+), 36 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/virtex4/Makefile.am b/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
index 1215d74..d4a12a1 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
@@ -32,6 +32,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../shared/startup/zerobss.c \
../../shared/bsplibc.c \
../../shared/bspgetworkarea.c \
+ ../../shared/bsppretaskinghook.c \
../../shared/bsppost.c \
startup/bspstart.c \
../../shared/bootcard.c \
diff --git a/c/src/lib/libbsp/powerpc/virtex4/start/start.S b/c/src/lib/libbsp/powerpc/virtex4/start/start.S
index 55d5318..e2c4534 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/start/start.S
+++ b/c/src/lib/libbsp/powerpc/virtex4/start/start.S
@@ -284,7 +284,7 @@ startupBL:
* PowerPC EABI.
*
* 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 r1,stack_top-base_addr(r1) /* set r1 to stack_top */
diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
index 5a2d88d..f4a5ced 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
@@ -109,9 +109,6 @@ static void _noopfun(void) {}
void app_bsp_start(void)
__attribute__(( weak, alias("_noopfun") ));
-void app_bsp_pretasking_hook(void)
-__attribute__(( weak, alias("_noopfun") ));
-
void app_bsp_predriver_hook(void)
__attribute__(( weak, alias("_noopfun") ));
@@ -235,20 +232,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
* initialized. Clear out any stale interrupts here.
*/
diff --git a/c/src/lib/libbsp/powerpc/virtex5/Makefile.am b/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
index 09231d2..3bdc713 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../shared/startup/zerobss.c \
../../shared/bsplibc.c \
../../shared/bspgetworkarea.c \
+ ../../shared/bsppretaskinghook.c \
../../shared/bsppost.c \
startup/bspstart.c \
../../shared/bootcard.c \
diff --git a/c/src/lib/libbsp/powerpc/virtex5/start/start.S b/c/src/lib/libbsp/powerpc/virtex5/start/start.S
index 40938e5..2b12c18 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/start/start.S
+++ b/c/src/lib/libbsp/powerpc/virtex5/start/start.S
@@ -376,7 +376,7 @@ startupBL:
* PowerPC EABI.
*
* 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 r1,stack_top-base_addr(r1) /* set r1 to stack_top */
diff --git a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
index 211e5b1..9d610e4 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
@@ -123,9 +123,6 @@ static void _noopfun(void) {}
void app_bsp_start(void)
__attribute__(( weak, alias("_noopfun") ));
-void app_bsp_pretasking_hook(void)
-__attribute__(( weak, alias("_noopfun") ));
-
void app_bsp_predriver_hook(void)
__attribute__(( weak, alias("_noopfun") ));
@@ -256,20 +253,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
* initialized. Clear out any stale interrupts here.
*/
More information about the vc
mailing list