summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-09 12:03:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-10 08:32:37 +0100
commit2858939a2ccb3cf1918dadd9cda1fd1d8ab5a9ef (patch)
treec942f9f828f944acdedf9f24daf06e3c3ebef280 /c/src/lib/libbsp/shared
parentbsps/powerpc: Use default bsp_pretasking_hook() (diff)
downloadrtems-2858939a2ccb3cf1918dadd9cda1fd1d8ab5a9ef.tar.bz2
bsps: Delete superfluous bsp_pretasking_hook()
Use the bsp_predriver_hook() instead. Update #2408.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c11
-rw-r--r--c/src/lib/libbsp/shared/bsppretaskinghook.c17
-rw-r--r--c/src/lib/libbsp/shared/include/bootcard.h3
3 files changed, 0 insertions, 31 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index cbeb7b2686..7d51e9f089 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -17,7 +17,6 @@
* + rtems_initialize_data_structures
* + allocate memory to C Program Heap
* + initialize C Library and C Program Heap
- * + bsp_pretasking_hook
* + rtems_initialize_before_drivers
* + bsp_predriver_hook
* + rtems_initialize_device_drivers
@@ -96,16 +95,6 @@ void boot_card(
bsp_libc_init();
/*
- * Let the BSP do any required initialization now that RTEMS
- * data structures are initialized. In older BSPs or those
- * which do not use the shared framework, this is the typical
- * time when the C Library is initialized so malloc()
- * can be called by device drivers. For BSPs using the shared
- * framework, this routine can be empty.
- */
- bsp_pretasking_hook();
-
- /*
* Let RTEMS perform initialization it requires before drivers
* are allowed to be initialized.
*/
diff --git a/c/src/lib/libbsp/shared/bsppretaskinghook.c b/c/src/lib/libbsp/shared/bsppretaskinghook.c
deleted file mode 100644
index a27806fbdc..0000000000
--- a/c/src/lib/libbsp/shared/bsppretaskinghook.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * This is a shared BSP pretasking hook which does nothing.
- *
- * COPYRIGHT (c) 1989-2008.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <bsp/bootcard.h>
-
-void bsp_pretasking_hook(void)
-{
- /* Do nothing */
-}
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 7c0d3f154e..a0d0993e8e 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -53,8 +53,6 @@ extern const char *bsp_boot_cmdline;
void bsp_start(void);
-void bsp_pretasking_hook(void);
-
void bsp_predriver_hook(void);
void bsp_driver_level_hook( int level );
@@ -83,7 +81,6 @@ void bsp_reset(void);
* - bsp_start() - more advanced initialization
* - rtems_initialize_data_structures()
* - initialize C Library
- * - bsp_pretasking_hook()
* - rtems_initialize_before_drivers()
* - bsp_predriver_hook()
* - rtems_initialize_device_drivers()