summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:28 +0000
commitdde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a (patch)
tree8c58dab3ed7b9cf33cf720006ff0963dd9c3c151 /c/src/lib/libbsp/powerpc
parent2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-dde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a.tar.bz2
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc')
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c20
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c14
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c23
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c10
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c7
14 files changed, 104 insertions, 76 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
index b631c04f2a..9470c3a368 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index 145d93e130..798bceae68 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -207,10 +207,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
rsPMCQ1Init();
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
void zero_bss()
diff --git a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
index b26275b465..30587c0e7a 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
index c8583a4d5f..52850d37af 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
@@ -108,10 +108,6 @@
#include <string.h>
-#ifdef STACK_CHECKER_ON
-#include <stackchk.h>
-#endif
-
#if defined(HAS_UBOOT)
bd_t *uboot_bdinfo_ptr = (bd_t *)1; /* will be overwritten from startup code */
bd_t uboot_bdinfo_copy; /* will be overwritten with copy of bdinfo */
@@ -189,24 +185,8 @@ bsp_pretasking_hook(void)
bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
#endif
-
-
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
-
-
void bsp_predriver_hook(void)
{
#if 0
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
index fe09aa673e..e443429530 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-15 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* network/network.c, start/start.S:
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
index f410794ad4..141fdb679c 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
@@ -106,20 +106,6 @@ bsp_pretasking_hook(void)
bsp_libc_init( BSP_heap_start,
BSP_heap_end - BSP_heap_start,
0);
-
-
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
void bsp_calc_mem_layout()
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
index 6ea1d39592..17b7811e86 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-15 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* irq/irq.c:
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
index d94f4500ca..58c2ad6cf9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
@@ -53,10 +53,6 @@
#include <string.h>
-#ifdef STACK_CHECKER_ON
-#include <stackchk.h>
-#endif
-
SPR_RW(SPRG0)
SPR_RW(SPRG1)
@@ -187,23 +183,10 @@ bsp_pretasking_hook(void)
* the kernel and the application can be linked and burned into ROM
* independently of each other.
*/
- extern unsigned char _HeapStart;
- extern unsigned char _HeapEnd;
-
- bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
+ extern unsigned char _HeapStart;
+ extern unsigned char _HeapEnd;
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
+ bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
}
void bsp_start(void)
diff --git a/c/src/lib/libbsp/powerpc/score603e/ChangeLog b/c/src/lib/libbsp/powerpc/score603e/ChangeLog
index d40af469bf..f30b10ef87 100644
--- a/c/src/lib/libbsp/powerpc/score603e/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/score603e/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index b3d2e1433b..3e4428955c 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -83,10 +83,6 @@ void bsp_pretasking_hook(void)
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*PAGE
diff --git a/c/src/lib/libbsp/powerpc/ss555/ChangeLog b/c/src/lib/libbsp/powerpc/ss555/ChangeLog
index 2be951494b..353a808a85 100644
--- a/c/src/lib/libbsp/powerpc/ss555/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ss555/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
index 4af763631a..86cf311cb6 100644
--- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
@@ -94,16 +94,12 @@ void bsp_pretasking_hook(void)
* the kernel and the application can be linked and burned into ROM
* independently of each other.
*/
- uint8_t *_HeapStart =
+ uint8_t *_HeapStart =
(uint8_t *)Configuration.work_space_start
+ rtems_configuration_get_work_space_size();
- extern uint8_t _HeapEnd[];
+ extern uint8_t _HeapEnd[];
- bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 );
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
+ bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 );
}
/*
diff --git a/c/src/lib/libbsp/powerpc/virtex/ChangeLog b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
index 69b6e8d318..9748d2c9e7 100644
--- a/c/src/lib/libbsp/powerpc/virtex/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
index e3b378b3c6..7a4afbc1cc 100644
--- a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
@@ -141,13 +141,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) heap_start, heap_size, 0); /* 64 * 1024 */
-/*
- XAssertSetCallback((XAssertCallback*)bsp_XAssertHandler);
-*/
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*